Lua-API++  2015-02-12-3
Lua-API++ library
Context::Registry Class Reference

Type of registry accessor. More...

Public Member Functions

Userdata metatables
Temporary operator[] (const char *index) noexcept
 Access to metatable associated with type description string. More...
 
Temporary operator[] (std::string &index) noexcept
 Access to metatable associated with type description string. More...
 
References
RegistryKey store (Valobj val)
 Store an object into registry. More...
 
Temporary operator[] (RegistryKey index) noexcept
 Access to stored objects. More...
 

Detailed Description

Type of registry accessor.

This class is private. You cannot create Registry objects.

Member Function Documentation

Temporary operator[] ( const char *  index)
noexcept

Access to metatable associated with type description string.

Parameters
indexType description string as defined in LUAPP_USERDATA.
Note
Using Context::mt function is a better way to manipulate userdata metatables.
See also
LUAPP_USERDATA
Temporary operator[] ( std::string &  index)
noexcept

Access to metatable associated with type description string.

Parameters
indexType description string as defined in LUAPP_USERDATA.
Note
Using Context::mt function is a better way to manipulate userdata metatables.
See also
LUAPP_USERDATA
RegistryKey store ( Valobj  val)

Store an object into registry.

Returns
Index to access stored object via indexation operator.
Temporary operator[] ( RegistryKey  index)
noexcept

Access to stored objects.

Parameters
indexAn index returned by store function.