lua Namespace Reference

Classes

class  exception
class  data
 Lua data. More...
class  argument
 argument of a Lua glue More...
struct  argument_list
 Holds all possible arguments of a Lua function's argument set. More...
class  function
 A helper to write Lua glues. More...
class  state
 Lua wrapper. More...
class  var
 Base type : untyped variable. More...

Typedefs

typedef int(* c_function )(lua_State *L)
typedef void(* print_function )(const std::string &s)
typedef std::type_info var_type

Enumerations

enum  type {
  TYPE_NONE, TYPE_NIL, TYPE_NUMBER, TYPE_BOOLEAN,
  TYPE_STRING, TYPE_FUNCTION, TYPE_TABLE, TYPE_THREAD,
  TYPE_LIGHTUSERDATA, TYPE_USERDATA
}

Functions

void open_libs (lua_State *pLua_)
int l_treat_error (lua_State *)
void default_print_function (const std::string &)
int glue_send_string (lua_State *pLua)
int glue_empty_string (lua_State *pLua)
int glue_table_to_string (lua_State *pLua)

Variables

const luaL_Reg lualibs []

Typedef Documentation

typedef int(* lua::c_function)(lua_State *L)

Definition at line 27 of file luapp_state.hpp.

typedef void(* lua::print_function)(const std::string &s)

Definition at line 28 of file luapp_state.hpp.

typedef std::type_info lua::var_type

Definition at line 10 of file luapp_var.hpp.


Enumeration Type Documentation

enum lua::type
Enumerator:
TYPE_NONE 
TYPE_NIL 
TYPE_NUMBER 
TYPE_BOOLEAN 
TYPE_STRING 
TYPE_FUNCTION 
TYPE_TABLE 
TYPE_THREAD 
TYPE_LIGHTUSERDATA 
TYPE_USERDATA 

Definition at line 13 of file luapp_state.hpp.


Function Documentation

void lua::default_print_function ( const std::string &  s  ) 

Definition at line 235 of file luapp_state.cpp.

int lua::glue_empty_string ( lua_State *  pLua  ) 
int lua::glue_send_string ( lua_State *  pLua  ) 
int lua::glue_table_to_string ( lua_State *  pLua  ) 
int lua::l_treat_error ( lua_State *  pLua  ) 

Definition at line 219 of file luapp_state.cpp.

void lua::open_libs ( lua_State *  pLua_  ) 

Definition at line 26 of file luapp_state.cpp.


Variable Documentation

const luaL_Reg lua::lualibs[]
Initial value:
 {
    {"",              luaopen_base},
    {LUA_LOADLIBNAME, luaopen_package},
    {LUA_TABLIBNAME,  luaopen_table},
    {LUA_IOLIBNAME,   luaopen_io},
    {LUA_OSLIBNAME,   luaopen_os},
    {LUA_STRLIBNAME,  luaopen_string},
    {LUA_MATHLIBNAME, luaopen_math},
    {LUA_DBLIBNAME,   luaopen_debug},
    {nullptr,         nullptr}
}

Definition at line 12 of file luapp_state.cpp.


Generated on Wed Mar 13 22:59:42 2013 for lua++ by  doxygen 1.6.1