Gateway to the raw C state of Lua. More...
#include <c_gate.hpp>
| Public Member Functions | |
| state_c_gate (state &) | |
| Creates a new gateway to an existing C++ Lua state. | |
| ~state_c_gate (void) | |
| Destructor. | |
| lua_State * | c_state (void) | 
| Returns the C native Lua state. | |
| Static Public Member Functions | |
| static state | connect (lua_State *) | 
| Creates a C++ state for a C Lua state. | |
| Private Attributes | |
| state & | _state | 
| The C++ state that this class wraps. | |
Gateway to the raw C state of Lua.
This class provides a mechanism to muck with the internals of the state wrapper class. Client code may wish to do so if Lutok is missing some features of the performance of Lutok in a particular situation is not reasonable.
| lutok::state_c_gate::state_c_gate | ( | state & | state_ | ) | 
Creates a new gateway to an existing C++ Lua state.
| state_ | The state to connect to. This object must remain alive while the newly-constructed state_c_gate is alive. | 
| lutok::state_c_gate::~state_c_gate | ( | void | ) | 
Destructor.
Destroying this object has no implications on the life cycle of the Lua state. Only the corresponding state object controls when the Lua state is closed.
| lua_State * lutok::state_c_gate::c_state | ( | void | ) | 
Returns the C native Lua state.
| 
 | static | 
Creates a C++ state for a C Lua state.
| raw_state | The raw state to wrap temporarily. | 
 1.8.1.1
 1.8.1.1