Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cLuaState::cStackValue Class Reference

A RAII class for values pushed onto the Lua stack. More...

#include <LuaState.h>

Public Member Functions

 cStackValue (void)
 
 cStackValue (cLuaState &a_LuaState)
 
 cStackValue (cStackValue &&a_Src)
 
bool IsValid (void) const
 
void Set (cLuaState &a_LuaState)
 
 ~cStackValue () CAN_THROW
 

Protected Member Functions

 cStackValue (const cStackValue &)=delete
 

Protected Attributes

lua_State * m_LuaState
 
int m_StackLen
 Used for debugging, Lua state's stack size is checked against this number to make sure it is the same as when the value was pushed. More...
 

Detailed Description

A RAII class for values pushed onto the Lua stack.

Will pop the value off the stack in the destructor.

Definition at line 458 of file LuaState.h.

Constructor & Destructor Documentation

cLuaState::cStackValue::cStackValue ( void  )
inline

Definition at line 461 of file LuaState.h.

cLuaState::cStackValue::cStackValue ( cLuaState a_LuaState)
inline

Definition at line 466 of file LuaState.h.

cLuaState::cStackValue::cStackValue ( cStackValue &&  a_Src)
inline

Definition at line 472 of file LuaState.h.

cLuaState::cStackValue::~cStackValue ( )
inline

Definition at line 480 of file LuaState.h.

cLuaState::cStackValue::cStackValue ( const cStackValue )
protecteddelete

Member Function Documentation

bool cLuaState::cStackValue::IsValid ( void  ) const
inline

Definition at line 495 of file LuaState.h.

void cLuaState::cStackValue::Set ( cLuaState a_LuaState)
inline

Definition at line 489 of file LuaState.h.

Member Data Documentation

lua_State* cLuaState::cStackValue::m_LuaState
protected

Definition at line 501 of file LuaState.h.

int cLuaState::cStackValue::m_StackLen
protected

Used for debugging, Lua state's stack size is checked against this number to make sure it is the same as when the value was pushed.

Definition at line 505 of file LuaState.h.


The documentation for this class was generated from the following file: