Inherits luwra::Table.
Public Member Functions | |
| StateWrapper (State *state) | |
| StateWrapper () | |
| ~StateWrapper () | |
| operator State * () | |
| void | loadStandardLibrary () |
| template<typename T > | |
| void | registerUserType (const char *ctor_name, const FieldVector &methods=FieldVector(), const FieldVector &meta_methods=FieldVector()) |
| int | runString (const char *code) |
| int | runFile (const char *filepath) |
Public Member Functions inherited from luwra::Table | |
| Table (const Reference &ref) | |
| Table (State *state, int index) | |
| template<typename K > | |
| internal::TableAccessor< internal::Path< const Reference &, K > > | access (K &&key) const |
| template<typename K > | |
| internal::TableAccessor< internal::Path< const Reference &, K > > | operator[] (K &&key) const |
| void | update (const FieldVector &fields) const |
| template<typename K > | |
| bool | has (K &&key) const |
| template<typename V , typename K > | |
| void | set (K &&key, V &&value) const |
| template<typename V , typename K > | |
| V | get (K &&key) const |
Public Attributes | |
| State * | state |
| bool | close_state |
Public Attributes inherited from luwra::Table | |
| Reference | ref |
Wrapper for a Lua state
|
inline |
Operate on a foreign state instance.
|
inline |
Create a new Lua state.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Execute a file.
|
inline |
Execute a piece of code.
| bool luwra::StateWrapper::close_state |
| State* luwra::StateWrapper::state |