xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Aurora::Lua::StackGuard Class Reference

Lua stack guard. More...

#include <stackguard.h>

Public Member Functions

 StackGuard (const Stack &stack)
 
 StackGuard (lua_State &state)
 
 ~StackGuard ()
 

Private Member Functions

 StackGuard (const StackGuard &guard)
 
StackGuardoperator= (const StackGuard &guard)
 

Private Attributes

lua_State & _state
 
int _top
 

Detailed Description

Lua stack guard.

Definition at line 37 of file stackguard.h.

Constructor & Destructor Documentation

◆ StackGuard() [1/3]

Aurora::Lua::StackGuard::StackGuard ( const Stack stack)

Definition at line 34 of file stackguard.cpp.

◆ StackGuard() [2/3]

Aurora::Lua::StackGuard::StackGuard ( lua_State &  state)

Definition at line 39 of file stackguard.cpp.

◆ ~StackGuard()

Aurora::Lua::StackGuard::~StackGuard ( )

Definition at line 43 of file stackguard.cpp.

References _state, and _top.

◆ StackGuard() [3/3]

Aurora::Lua::StackGuard::StackGuard ( const StackGuard guard)
private

Member Function Documentation

◆ operator=()

StackGuard& Aurora::Lua::StackGuard::operator= ( const StackGuard guard)
private

Member Data Documentation

◆ _state

lua_State& Aurora::Lua::StackGuard::_state
private

Definition at line 44 of file stackguard.h.

Referenced by ~StackGuard().

◆ _top

int Aurora::Lua::StackGuard::_top
private

Definition at line 45 of file stackguard.h.

Referenced by ~StackGuard().


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