|
UGDK
0.4.1
|
Classes | |
| class | AuxLib |
| class | BaseGear |
| class | BootstrapGear |
| class | DataGear |
| class | Constant |
| Represents a constant value from the Lua library. More... | |
| class | LuaData |
| class | LuaWrapper |
| class | State |
Typedefs | |
| typedef ugdk::script::Module < lua_CFunction > | LuaModule |
| typedef const std::vector < LuaModule > | ModuleList |
| typedef int | DataID |
| typedef std::list< DataID > | DataBuffer |
| typedef std::map< DataID, DataID > | DataMap |
| typedef void * | UData |
| typedef ugdk::script::InheritableLangWrapper < lua_CFunction > | LuaWrapperBase |
Functions | |
| template<class T > | |
| UData | AsUData (T *p) |
| template<class T > | |
| UData | AsUData (const T *p) |
| void | LuaMsg (const char *format,...) |
| template<class T > | |
| T | UnwrapPrimitive (LuaWrapper *wrapper, const DataID id, const T default_value) |
| template<class T > | |
| void | WrapPrimitive (LuaWrapper *wrapper, DataID id, T value) |
Lua primitive <b>push</b>. | |
| DEFINE_LUA_PRIMITIVE_OP (push) | |
| DEFINE_LUA_PARTIAL_PUSH (class T, T *, lua_pushlightuserdata(L, AsUData< T >(val))) | |
| DEFINE_LUA_FULL_PUSH (lua_CFunction, lua_pushcclosure(L, val, 0)) | |
| DEFINE_LUA_SIMPLE_PUSH (const char *, string) | |
| DEFINE_LUA_SIMPLE_PUSH (bool, boolean) | |
| DEFINE_LUA_SIMPLE_PUSH (int, integer) | |
| DEFINE_LUA_SIMPLE_PUSH (double, number) | |
| DEFINE_LUA_SIMPLE_PUSH (UData, lightuserdata) | |
Lua primitive <b>to</b>. | |
| DEFINE_LUA_PRIMITIVE_OP (to) | |
| DEFINE_LUA_TO (const char *, lua_tolstring(L, index, NULL)) | |
| DEFINE_LUA_TO (bool,!!(lua_toboolean(L, index))) | |
| DEFINE_LUA_SIMPLE_TO (int, integer) | |
| DEFINE_LUA_SIMPLE_TO (double, number) | |
| DEFINE_LUA_SIMPLE_TO (UData, userdata) | |
Lua primitive <b>is</b>. | |
| DEFINE_LUA_PRIMITIVE_OP (is) | |
| DEFINE_LUA_SIMPLE_IS (const char *, string) | |
| DEFINE_LUA_IS (bool,!lua_isnone(L, index)) | |
| DEFINE_LUA_SIMPLE_IS (int, number) | |
| DEFINE_LUA_SIMPLE_IS (double, number) | |
| typedef std::list<DataID> ugdk::script::lua::DataBuffer |
| typedef int ugdk::script::lua::DataID |
| typedef std::map<DataID,DataID> ugdk::script::lua::DataMap |
| typedef const std::vector<LuaModule> ugdk::script::lua::ModuleList |
| typedef void* ugdk::script::lua::UData |
| UData ugdk::script::lua::AsUData | ( | T * | p | ) |
| UData ugdk::script::lua::AsUData | ( | const T * | p | ) |
| ugdk::script::lua::DEFINE_LUA_FULL_PUSH | ( | lua_CFunction | , |
| lua_pushcclosure(L, val, 0) | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_IS | ( | bool | , |
| ! | lua_isnoneL, index | ||
| ) |
| ugdk::script::lua::DEFINE_LUA_PARTIAL_PUSH | ( | class T | , |
| T * | , | ||
| lua_pushlightuserdata(L, AsUData< T >(val)) | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_PRIMITIVE_OP | ( | push | ) |
| ugdk::script::lua::DEFINE_LUA_PRIMITIVE_OP | ( | to | ) |
| ugdk::script::lua::DEFINE_LUA_PRIMITIVE_OP | ( | is | ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_IS | ( | const char * | , |
| string | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_IS | ( | int | , |
| number | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_IS | ( | double | , |
| number | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH | ( | const char * | , |
| string | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH | ( | bool | , |
| boolean | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH | ( | int | , |
| integer | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH | ( | double | , |
| number | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH | ( | UData | , |
| lightuserdata | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_TO | ( | int | , |
| integer | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_TO | ( | double | , |
| number | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_SIMPLE_TO | ( | UData | , |
| userdata | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_TO | ( | const char * | , |
| lua_tolstring(L, index, NULL) | |||
| ) |
| ugdk::script::lua::DEFINE_LUA_TO | ( | bool | , |
| !! | lua_toboolean(L, index) | ||
| ) |
|
inline |
| T ugdk::script::lua::UnwrapPrimitive | ( | LuaWrapper * | wrapper, |
| const DataID | id, | ||
| const T | default_value | ||
| ) |
| void ugdk::script::lua::WrapPrimitive | ( | LuaWrapper * | wrapper, |
| DataID | id, | ||
| T | value | ||
| ) |