Lunar< T > Class Template Reference

#include <lunar.hpp>

List of all members.

Classes

struct  RegType
struct  userdataType

Public Types

typedef int(T::* mfp )(lua_State *L)

Static Public Member Functions

static void reg (lua_State *L)
static int call (lua_State *L, const char *method, int nargs=0, int nresults=LUA_MULTRET, int errfunc=0)
static int push (lua_State *L, T *obj, bool gc=false)
static T * check (lua_State *L, int narg)
static T * wide_check (lua_State *L, int narg)
static T * push_new (lua_State *L)

Private Member Functions

 Lunar ()

Static Private Member Functions

static int thunk (lua_State *L)
static int new_T (lua_State *L)
static int gc_T (lua_State *L)
static int tostring_T (lua_State *L)
static void set (lua_State *L, int table_index, const char *key)
static void weaktable (lua_State *L, const char *mode)
static void subtable (lua_State *L, int tindex, const char *name, const char *mode)
static void * pushuserdata (lua_State *L, void *key, size_t sz)

Detailed Description

template<typename T>
class Lunar< T >

Definition at line 12 of file lunar.hpp.


Member Typedef Documentation

template<typename T >
typedef int(T::* Lunar< T >::mfp)(lua_State *L)

Definition at line 15 of file lunar.hpp.


Constructor & Destructor Documentation

template<typename T >
Lunar< T >::Lunar (  )  [private]

Member Function Documentation

template<typename T >
static int Lunar< T >::call ( lua_State *  L,
const char *  method,
int  nargs = 0,
int  nresults = LUA_MULTRET,
int  errfunc = 0 
) [inline, static]

Definition at line 80 of file lunar.hpp.

template<typename T >
static T* Lunar< T >::check ( lua_State *  L,
int  narg 
) [inline, static]

Definition at line 139 of file lunar.hpp.

template<typename T >
static int Lunar< T >::gc_T ( lua_State *  L  )  [inline, static, private]

Definition at line 210 of file lunar.hpp.

template<typename T >
static int Lunar< T >::new_T ( lua_State *  L  )  [inline, static, private]

Definition at line 202 of file lunar.hpp.

template<typename T >
static int Lunar< T >::push ( lua_State *  L,
T *  obj,
bool  gc = false 
) [inline, static]

Definition at line 112 of file lunar.hpp.

template<typename T >
static T* Lunar< T >::push_new ( lua_State *  L  )  [inline, static]

Definition at line 180 of file lunar.hpp.

template<typename T >
static void* Lunar< T >::pushuserdata ( lua_State *  L,
void *  key,
size_t  sz 
) [inline, static, private]

Definition at line 259 of file lunar.hpp.

template<typename T >
static void Lunar< T >::reg ( lua_State *  L  )  [inline, static]

Definition at line 18 of file lunar.hpp.

template<typename T >
static void Lunar< T >::set ( lua_State *  L,
int  table_index,
const char *  key 
) [inline, static, private]

Definition at line 231 of file lunar.hpp.

template<typename T >
static void Lunar< T >::subtable ( lua_State *  L,
int  tindex,
const char *  name,
const char *  mode 
) [inline, static, private]

Definition at line 246 of file lunar.hpp.

template<typename T >
static int Lunar< T >::thunk ( lua_State *  L  )  [inline, static, private]

Definition at line 191 of file lunar.hpp.

template<typename T >
static int Lunar< T >::tostring_T ( lua_State *  L  )  [inline, static, private]

Definition at line 222 of file lunar.hpp.

template<typename T >
static void Lunar< T >::weaktable ( lua_State *  L,
const char *  mode 
) [inline, static, private]

Definition at line 237 of file lunar.hpp.

template<typename T >
static T* Lunar< T >::wide_check ( lua_State *  L,
int  narg 
) [inline, static]

Definition at line 146 of file lunar.hpp.


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

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