|
| Class (char const *name, Namespace const *parent) |
|
| Class (char const *name, Namespace const *parent, void const *const staticKey) |
|
Namespace | endClass () |
|
template<class U > |
Class< T > & | addStaticData (char const *name, U *pu, bool isWritable=true) |
|
Class< T > & | addOperator (char const *name, int(*const fp)(lua_State *)) |
|
template<class FP > |
Class< T > & | addMetamethod (char const *name, FP const fp) |
|
template<class FP > |
Class< T > & | addStaticFunction (char const *name, FP const fp) |
|
Class< T > & | addStaticCFunction (char const *name, int(*const fp)(lua_State *)) |
|
template<class U > |
Class< T > & | addData (char const *name, const U T::*mp, bool isWritable=true) |
|
template<class TG , class TS > |
Class< T > & | addProperty (char const *name, TG(T::*get)() const, bool(T::*set)(TS)) |
|
template<class TG , class TS > |
Class< T > & | addProperty (char const *name, TG(*get)(T const *), bool(*set)(T *, TS)) |
|
template<class MemFn > |
Class< T > & | addFunction (char const *name, MemFn mf) |
|
template<class MemFn > |
Class< T > & | addPtrFunction (char const *name, MemFn mf) |
|
template<class MemFn > |
Class< T > & | addWPtrFunction (char const *name, MemFn mf) |
|
template<class MemFn > |
Class< T > & | addRefFunction (char const *name, MemFn mf) |
|
Class< T > & | addCFunction (char const *name, int(T::*mfp)(lua_State *)) |
|
Class< T > & | addExtCFunction (char const *name, int(*const fp)(lua_State *)) |
|
Class< T > & | addCFunction (char const *name, int(T::*mfp)(lua_State *) const) |
|
template<typename U > |
Class< T > & | addConst (char const *name, const U val) |
|
template<class MemFn , class C > |
Class< T > & | addConstructor () |
|
template<class MemFn > |
Class< T > & | addConstructor () |
|
template<class MemFn , class PT > |
Class< T > & | addPtrConstructor () |
|
Class< T > & | addVoidConstructor () |
|
template<class PT > |
Class< T > & | addVoidPtrConstructor () |
|
Class< T > & | addEqualCheck () |
|
template<class U > |
Class< T > & | addCast (char const *name) |
|
| ClassBase (lua_State *L_) |
|
| ClassBase (ClassBase const &other) |
|
| ~ClassBase () |
|
template<class T>
class Namespace::Class< T >
Provides a class registration in a lua_State.
After contstruction the Lua stack holds these objects: -1 static table -2 class table -3 const table -4 (enclosing namespace)
Definition at line 556 of file Namespace.h.
template<class T >
template<class MemFn , class C >
Add or replace a primary Constructor.
The primary Constructor is invoked when calling the class type table like a function.
The template parameter should be a function pointer type that matches the desired Constructor (since you can't take the address of a Constructor and pass it as an argument).
Definition at line 1093 of file Namespace.h.
template<class T >
template<class TG , class TS >
Class<T>& Namespace::Class< T >::addProperty |
( |
char const * |
name, |
|
|
TG(*)(T const *) |
get, |
|
|
bool(*)(T *, TS) |
set |
|
) |
| |
|
inline |
Add or replace a property member, by proxy.
When a class is closed for modification and does not provide (or cannot provide) the function signatures necessary to implement get or set for a property, this will allow non-member functions act as proxies.
Both the get and the set functions require a T const* and T* in the first argument respectively.
Definition at line 925 of file Namespace.h.