xoreos
0.0.5
|
Classes | |
class | DefaultDeleter |
class | FunctionRef |
A reference to a Lua function. More... | |
class | ScriptManager |
Lua script manager. More... | |
class | Stack |
A Lua stack wrapper. More... | |
class | StackGuard |
Lua stack guard. More... | |
class | TableRef |
A reference to a Lua table. More... | |
class | Variable |
Typedefs | |
typedef std::vector< Variable > | Variables |
Enumerations | |
enum | Type { kTypeNone = 0, kTypeNil, kTypeBoolean, kTypeNumber, kTypeString, kTypeTable, kTypeFunction, kTypeUserType } |
Functions | |
void * | getRawCppObjectFromStack (const Stack &stack, int index) |
void * | getRawCppObjectFromVariable (const Variable &var) |
template<typename T > | |
T * | getCppObjectFromStack (const Stack &stack, int index) |
template<typename T > | |
T * | getCppObjectFromVariable (const Variable &var) |
typedef std::vector<Variable> Aurora::Lua::Variables |
enum Aurora::Lua::Type |
T* Aurora::Lua::getCppObjectFromStack | ( | const Stack & | stack, |
int | index | ||
) |
Definition at line 41 of file util.h.
References getRawCppObjectFromStack().
T* Aurora::Lua::getCppObjectFromVariable | ( | const Variable & | var | ) |
Definition at line 46 of file util.h.
References getRawCppObjectFromVariable().
void * Aurora::Lua::getRawCppObjectFromStack | ( | const Stack & | stack, |
int | index | ||
) |
Definition at line 34 of file util.cpp.
References Aurora::Lua::Stack::getRawUserTypeAt(), Aurora::Lua::TableRef::getRawUserTypeAt(), Aurora::Lua::Stack::getTableAt(), Aurora::Lua::Stack::getTypeAt(), Aurora::Lua::TableRef::isUserTypeAt(), kTypeTable, kTypeUserType, Aurora::Lua::TableRef::setMetaAccessEnabled(), and XOREOS_FALLTHROUGH.
Referenced by getCppObjectFromStack().
void * Aurora::Lua::getRawCppObjectFromVariable | ( | const Variable & | var | ) |
Definition at line 52 of file util.cpp.
References Aurora::Lua::Variable::getRawUserType(), Aurora::Lua::TableRef::getRawUserTypeAt(), Aurora::Lua::Variable::getTable(), Aurora::Lua::Variable::getType(), Aurora::Lua::TableRef::isUserTypeAt(), kTypeTable, kTypeUserType, Aurora::Lua::TableRef::setMetaAccessEnabled(), and XOREOS_FALLTHROUGH.
Referenced by getCppObjectFromVariable().