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

Classes

class  AuxLib
 
class  BaseGear
 
class  BootstrapGear
 
class  Constant
 Represents a constant value from the Lua library. More...
 
class  DataGear
 
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 lua_CFunction inittype
 
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,...)
 
std::string NameConversion (const std::string &name)
 
void AddModule (const Module< inittype > &)
 
void RegisterModules (LuaWrapper *wrapper)
 
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, nullptr))
 
 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

void ugdk::script::lua::AddModule ( const Module< inittype > &  )
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_PRIMITIVE_OP ( push  )
ugdk::script::lua::DEFINE_LUA_PRIMITIVE_OP ( to  )
ugdk::script::lua::DEFINE_LUA_PRIMITIVE_OP ( is  )
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 ( int  ,
integer   
)
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, nullptr)   
)
ugdk::script::lua::DEFINE_LUA_TO ( bool  ,
!!  lua_toboolean(L, index) 
)
void ugdk::script::lua::LuaMsg ( const char *  format,
  ... 
)
inline
std::string ugdk::script::lua::NameConversion ( const std::string &  name)
void ugdk::script::lua::RegisterModules ( LuaWrapper *  wrapper)