UGDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Typedefs | Functions
ugdk::script::lua Namespace Reference

Classes

class  AuxLib
class  BaseGear
class  BootstrapGear
class  DataGear
class  Constant
 Represents a constant value from the Lua library. More...
class  LuaData
class  LuaWrapper
class  State

Typedefs

typedef ugdk::script::Module
< lua_CFunction
LuaModule
typedef const std::vector
< LuaModule
ModuleList
typedef int DataID
typedef std::list< DataIDDataBuffer
typedef std::map< DataID, DataIDDataMap
typedef void * UData
typedef
ugdk::script::InheritableLangWrapper
< lua_CFunction
LuaWrapperBase

Functions

template<class T >
UData AsUData (T *p)
template<class T >
UData AsUData (const T *p)
void LuaMsg (const char *format,...)
template<class T >
UnwrapPrimitive (LuaWrapper *wrapper, const DataID id, const T default_value)
template<class T >
void WrapPrimitive (LuaWrapper *wrapper, DataID id, T value)
Lua primitive <b>push</b>.
 DEFINE_LUA_PRIMITIVE_OP (push)
 DEFINE_LUA_PARTIAL_PUSH (class T, T *, lua_pushlightuserdata(L, AsUData< T >(val)))
 DEFINE_LUA_FULL_PUSH (lua_CFunction, lua_pushcclosure(L, val, 0))
 DEFINE_LUA_SIMPLE_PUSH (const char *, string)
 DEFINE_LUA_SIMPLE_PUSH (bool, boolean)
 DEFINE_LUA_SIMPLE_PUSH (int, integer)
 DEFINE_LUA_SIMPLE_PUSH (double, number)
 DEFINE_LUA_SIMPLE_PUSH (UData, lightuserdata)
Lua primitive <b>to</b>.
 DEFINE_LUA_PRIMITIVE_OP (to)
 DEFINE_LUA_TO (const char *, lua_tolstring(L, index, NULL))
 DEFINE_LUA_TO (bool,!!(lua_toboolean(L, index)))
 DEFINE_LUA_SIMPLE_TO (int, integer)
 DEFINE_LUA_SIMPLE_TO (double, number)
 DEFINE_LUA_SIMPLE_TO (UData, userdata)
Lua primitive <b>is</b>.
 DEFINE_LUA_PRIMITIVE_OP (is)
 DEFINE_LUA_SIMPLE_IS (const char *, string)
 DEFINE_LUA_IS (bool,!lua_isnone(L, index))
 DEFINE_LUA_SIMPLE_IS (int, number)
 DEFINE_LUA_SIMPLE_IS (double, number)

Typedef Documentation

typedef const std::vector<LuaModule> ugdk::script::lua::ModuleList
typedef void* ugdk::script::lua::UData

Function Documentation

template<class T >
UData ugdk::script::lua::AsUData ( T *  p)
template<class T >
UData ugdk::script::lua::AsUData ( const T *  p)
ugdk::script::lua::DEFINE_LUA_FULL_PUSH ( lua_CFunction  ,
lua_pushcclosure(L, val, 0)   
)
ugdk::script::lua::DEFINE_LUA_IS ( bool  ,
lua_isnoneL, index 
)
ugdk::script::lua::DEFINE_LUA_PARTIAL_PUSH ( class T  ,
T *  ,
lua_pushlightuserdata(L, AsUData< T >(val))   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_IS ( const char *  ,
string   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_IS ( int  ,
number   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_IS ( double  ,
number   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH ( const char *  ,
string   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH ( bool  ,
boolean   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH ( double  ,
number   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_PUSH ( UData  ,
lightuserdata   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_TO ( int  ,
integer   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_TO ( double  ,
number   
)
ugdk::script::lua::DEFINE_LUA_SIMPLE_TO ( UData  ,
userdata   
)
ugdk::script::lua::DEFINE_LUA_TO ( const char *  ,
lua_tolstring(L, index, NULL)   
)
ugdk::script::lua::DEFINE_LUA_TO ( bool  ,
!!  lua_toboolean(L, index) 
)
void ugdk::script::lua::LuaMsg ( const char *  format,
  ... 
) [inline]
template<class T >
T ugdk::script::lua::UnwrapPrimitive ( LuaWrapper *  wrapper,
const DataID  id,
const T  default_value 
)
template<class T >
void ugdk::script::lua::WrapPrimitive ( LuaWrapper *  wrapper,
DataID  id,
value 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines