25 #ifndef ENGINES_AURORA_LUA_STACK_H 26 #define ENGINES_AURORA_LUA_STACK_H 43 Stack(lua_State &state);
151 #endif // ENGINES_AURORA_LUA_STACK_H bool isNilAt(int index) const
Check whether the value with the given index is a nil.
bool isStringAt(int index) const
Check whether the value at the given index is a string.
Variables getVariablesFromTop(int count) const
TableRef getTableAt(int index) const
Return a table at the given index in the stack.
bool checkIndex(int index) const
Check whether the given index is valid.
A class holding an UTF-8 string.
void pushVariables(const Variables &vars)
Common::UString getStringAt(int index) const
Return a string at the given index in the stack.
void pushInt(int value)
Push an integer value onto the stack.
Variable getVariableAt(int index) const
T * getUserTypeAt(int index, const Common::UString &type="") const
Return a usertype value at the given index in the stack.
bool isBooleanAt(int index) const
Check whether the value at the given index is a boolean value.
int getSize() const
Return the number of elements in the stack.
FunctionRef getFunctionAt(int index) const
Return a function at the given index in the stack.
Common::UString getExactTypeAt(int index) const
Return the type of the value at the given index in the stack.
void pushUserType(T &value, const Common::UString &type)
Push a usertype value onto the stack.
void pushFunction(const FunctionRef &value)
Push a function onto the stack.
void pushFloat(float value)
Push a float value onto the stack.
void registerGCForTopObject()
bool getBooleanAt(int index) const
Return a boolean value at the given index in the stack.
void * getRawUserTypeAt(int index, const Common::UString &type="") const
Return a raw usertype value at the given index in the stack.
void pushTable(const TableRef &value)
Push a table onto the stack.
Type getTypeAt(int index) const
std::vector< Variable > Variables
void pushRawUserType(void *value, const Common::UString &type)
Push a raw usertype value onto the stack.
A reference to a Lua function.
void pushBoolean(bool value)
Push a boolean value onto the stack.
lua_State & _luaState
The Lua state.
Variables getVariables() const
bool isFunctionAt(int index) const
Check whether the value at the given index is a function.
void pushNil()
Push a nil value onto the stack.
A reference to a Lua table.
void pushVariable(const Variable &var)
int getIntAt(int index) const
Return an integer value at the given index in the stack.
float getFloatAt(int index) const
Return a float value at the given index in the stack.
bool isTableAt(int index) const
Check whether the value at the given index is a table.
bool isNumberAt(int index) const
Check whether the value at the given index is a number.
bool isUserTypeAt(int index, const Common::UString &type="") const
Check whether the value at the given index is a usertype value.
lua_State & getLuaState() const
Return the underlying Lua state.
void pushString(const char *value)
Push a raw C string onto the stack.