Public Member Functions | |
| StateWrapper (State *state) | |
| StateWrapper () | |
| ~StateWrapper () | |
| operator State * () | |
| void | loadStandardLibrary () |
| template<typename V > | |
| V | getGlobal (const std::string &key) const |
| template<typename V > | |
| void | setGlobal (const std::string &key, V value) const |
| GlobalAccessor | operator[] (const std::string &key) const |
| template<typename T > | |
| void | registerUserType (const std::string &ctor_name, const FieldVector &methods=FieldVector(), const FieldVector &meta_methods=FieldVector()) |
| int | runString (const std::string &code) |
| int | runFile (const std::string &filepath) |
Public Attributes | |
| State * | state |
| bool | close_state |
Wrapper for a Lua state
|
inline |
Operate on a foreign state instance.
|
inline |
Create a new Lua state.
|
inline |
|
inline |
Retrieve a global value.
|
inline |
|
inline |
|
inline |
Create an accessor to a global value.
|
inline |
|
inline |
Execute a file.
|
inline |
Execute a piece of code.
|
inline |
Assign a global value.
| bool luwra::StateWrapper::close_state |
| State* luwra::StateWrapper::state |