Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LuaTable Class Reference

#include <LuaTable.h>

Inheritance diagram for LuaTable:
Inheritance graph
[legend]

Classes

class  VecIter
 

Public Member Functions

 LuaTable (const LuaTable &ref)
 
 LuaTable (lua_State *l, int index)
 
 LuaTable (lua_State *l)
 
 LuaTable (lua_State *l, int array_s, int hash_s)
 
 ~LuaTable ()
 
const LuaTableoperator= (const LuaTable &ref)
 
template<class Key >
LuaTable PushValueToStack (const Key &key) const
 
template<class Value , class Key >
Value Get (const Key &key) const
 
template<class Key >
LuaTable Sub (const Key &key) const
 
template<class Value , class Key >
Value Get (const Key &key, Value default_value) const
 
template<class Value , class Key >
LuaTable Set (const Key &key, const Value &value) const
 
template<class Ret , class Key , class... Args>
Ret Call (const Key &key, const Args &... args) const
 
template<class Key , class... Args>
void Call (const Key &key, const Args &... args) const
 
template<class Ret1 , class Ret2 , class... Ret, class Key , class... Args>
std::tuple< Ret1, Ret2, Ret... > Call (const Key &key, const Args &... args) const
 
template<class Key , class... Args>
void CallMethod (const Key &key, const Args &... args) const
 
template<class Ret , class Key , class... Args>
Ret CallMethod (const Key &key, const Args &... args) const
 
template<class Ret1 , class Ret2 , class... Ret, class Key , class... Args>
std::tuple< Ret1, Ret2, Ret... > CallMethod (const Key &key, const Args &... args) const
 
template<class PairIterator >
LuaTable LoadMap (PairIterator beg, PairIterator end) const
 
template<class ValueIterator >
LuaTable LoadVector (ValueIterator beg, ValueIterator end) const
 
template<class Key , class Value >
std::map< Key, Value > GetMap () const
 
lua_State * GetLua () const
 
int GetIndex () const
 
size_t Size () const
 
template<class Value >
VecIter< Value > Begin ()
 
template<class Value >
VecIter< Value > End ()
 

Protected Member Functions

 LuaTable ()
 

Protected Attributes

lua_State * m_lua
 
int m_index
 

Constructor & Destructor Documentation

◆ LuaTable() [1/5]

LuaTable::LuaTable ( const LuaTable ref)
inline

◆ LuaTable() [2/5]

LuaTable::LuaTable ( lua_State *  l,
int  index 
)
inline

◆ LuaTable() [3/5]

LuaTable::LuaTable ( lua_State *  l)
inlineexplicit

◆ LuaTable() [4/5]

LuaTable::LuaTable ( lua_State *  l,
int  array_s,
int  hash_s 
)
inlineexplicit

◆ ~LuaTable()

LuaTable::~LuaTable ( )
inline

◆ LuaTable() [5/5]

LuaTable::LuaTable ( )
inlineprotected

Member Function Documentation

◆ Begin()

template<class Value >
VecIter< Value > LuaTable::Begin ( )
inline

◆ Call() [1/3]

template<class Ret , class Key , class... Args>
Ret LuaTable::Call ( const Key &  key,
const Args &...  args 
) const
Here is the call graph for this function:

◆ Call() [2/3]

template<class Key , class... Args>
void LuaTable::Call ( const Key &  key,
const Args &...  args 
) const
inline

◆ Call() [3/3]

template<class Ret1 , class Ret2 , class... Ret, class Key , class... Args>
std::tuple< Ret1, Ret2, Ret... > LuaTable::Call ( const Key &  key,
const Args &...  args 
) const
Here is the call graph for this function:

◆ CallMethod() [1/3]

template<class Key , class... Args>
void LuaTable::CallMethod ( const Key &  key,
const Args &...  args 
) const
inline

◆ CallMethod() [2/3]

template<class Ret , class Key , class... Args>
Ret LuaTable::CallMethod ( const Key &  key,
const Args &...  args 
) const
inline

◆ CallMethod() [3/3]

template<class Ret1 , class Ret2 , class... Ret, class Key , class... Args>
std::tuple< Ret1, Ret2, Ret... > LuaTable::CallMethod ( const Key &  key,
const Args &...  args 
) const
inline
Here is the call graph for this function:

◆ End()

template<class Value >
VecIter< Value > LuaTable::End ( )
inline
Here is the call graph for this function:

◆ Get() [1/2]

template<class Value , class Key >
Value LuaTable::Get ( const Key &  key) const
Here is the call graph for this function:

◆ Get() [2/2]

template<class Value , class Key >
Value LuaTable::Get ( const Key &  key,
Value  default_value 
) const
Here is the call graph for this function:

◆ GetIndex()

int LuaTable::GetIndex ( ) const
inline

◆ GetLua()

lua_State * LuaTable::GetLua ( ) const
inline

◆ GetMap()

template<class Key , class Value >
std::map< Key, Value > LuaTable::GetMap
Here is the call graph for this function:

◆ LoadMap()

template<class PairIterator >
LuaTable LuaTable::LoadMap ( PairIterator  beg,
PairIterator  end 
) const
Here is the call graph for this function:

◆ LoadVector()

template<class ValueIterator >
LuaTable LuaTable::LoadVector ( ValueIterator  beg,
ValueIterator  end 
) const
Here is the call graph for this function:

◆ operator=()

const LuaTable & LuaTable::operator= ( const LuaTable ref)
inline

◆ PushValueToStack()

template<class Key >
LuaTable LuaTable::PushValueToStack ( const Key &  key) const
Here is the call graph for this function:

◆ Set()

template<class Value , class Key >
LuaTable LuaTable::Set ( const Key &  key,
const Value &  value 
) const
Here is the call graph for this function:

◆ Size()

size_t LuaTable::Size ( ) const
inline

◆ Sub()

template<class Key >
LuaTable LuaTable::Sub ( const Key &  key) const
Here is the call graph for this function:

Member Data Documentation

◆ m_index

int LuaTable::m_index
protected

◆ m_lua

lua_State* LuaTable::m_lua
protected

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