Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

LuaStateOwner Class Reference

#include <LuaState.h>

Inheritance diagram for LuaStateOwner::

LuaState List of all members.

Public Methods

 LuaStateOwner (bool initStandardLibrary=true, unsigned long stackSize=0, bool multithreaded=false)
 LuaStateOwner (LuaState &script, bool initStandardLibrary=true, unsigned long stackSize=0)
 ~LuaStateOwner ()

Protected Methods

void Init (bool initStandardLibrary, unsigned long stackSize)

Detailed Description

A derived version of LuaState that enables creation of lua_States. When the LuaStateOwner object goes out of scope, the Lua state is destroyed. When the LuaState object goes out of scope, nothing occurs.

Definition at line 1273 of file LuaState.h.


Constructor & Destructor Documentation

LuaStateOwner::LuaStateOwner bool    initStandardLibrary = true,
unsigned long    stackSize = 0,
bool    multithreaded = false
 

LuaStateOwner::LuaStateOwner LuaState   script,
bool    initStandardLibrary = true,
unsigned long    stackSize = 0
 

LuaStateOwner::~LuaStateOwner   [inline]
 

The LuaStateOwner class assumes ownership of the lua_State pointer and destroys it when destroyed.

Definition at line 1346 of file LuaState.h.


Member Function Documentation

void LuaStateOwner::Init bool    initStandardLibrary,
unsigned long    stackSize
[protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 21:15:17 2001 for LuaState(LuaWrapper) by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001