Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
LuaObject< T > Class Template Reference

#include <LuaObject.h>

Inheritance diagram for LuaObject< T >:
Inheritance graph
[legend]
Collaboration diagram for LuaObject< T >:
Collaboration graph
[legend]

Public Member Functions

void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void PushToLua (const SystemPath &o)
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void PushToLua (const SystemPath &o)
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 
void RegisterClass ()
 

Static Public Member Functions

static void RegisterClass ()
 
static void PushToLua (DeleteEmitter *o)
 
static void PushToLua (RefCounted *o)
 
static void PushToLua (const T &o)
 
static void PushComponentToLua (LuaWrappable *o)
 
template<typename... Args>
static void CreateInLua (Args &&...args)
 
template<typename Ret , typename Key , typename... Args>
static Ret CallMethod (T *o, const Key &key, const Args &...args)
 
template<typename Key , typename... Args>
static void CallMethod (T *o, const Key &key, const Args &...args)
 
template<typename Ret1 , typename Ret2 , typename... Ret, typename Key , typename... Args>
static std::tuple< Ret1, Ret2, Ret... > CallMethod (T *o, const Key &key, const Args &...args)
 
static T * CheckFromLua (int idx)
 
static T * GetFromLua (int idx)
 
static bool DynamicCastPromotionTest (LuaWrappable *o)
 
- Static Public Member Functions inherited from LuaObjectBase
static void CreateObject (const luaL_Reg *methods, const luaL_Reg *attrs, const luaL_Reg *meta, bool protect=false)
 
static void CreateObject (LuaMetaTypeBase *metaType)
 
static PropertyMapGetPropertiesFromObject (lua_State *l, int object)
 
static void RegisterSerializer (const char *type, SerializerPair pair)
 
static bool SerializeComponents (LuaWrappable *object, Json &out)
 
static bool DeserializeComponents (LuaWrappable *object, const Json &obj)
 
static void DeregisterObject (LuaWrappable *object)
 

Protected Member Functions

 LuaObject ()
 
- Protected Member Functions inherited from LuaObjectBase
 LuaObjectBase (const char *type)
 
virtual ~LuaObjectBase ()
 
virtual LuaWrappableGetObject () const =0
 
virtual void ClearObject ()
 
const char * GetType () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from LuaObjectBase
static void CreateClass (const char *type, const char *parent, const luaL_Reg *methods, const luaL_Reg *attrs, const luaL_Reg *meta)
 
static void CreateClass (LuaMetaTypeBase *metaType)
 
static bool PushRegistered (LuaWrappable *o)
 
static void Register (LuaObjectBase *lo)
 
static void RegisterPersistent (LuaObjectBase *lo)
 
static LuaWrappableCheckFromLua (int index, const char *type)
 
static LuaWrappableGetFromLua (int index, const char *type)
 
static void RegisterPromotion (const char *base_type, const char *target_type, PromotionTest test_fn)
 
static bool SerializeToJson (lua_State *l, Json &out)
 
static bool DeserializeFromJson (lua_State *l, const Json &obj)
 
static void * Allocate (size_t n)
 
template<typename T >
static T * Allocate ()
 
template<typename T , typename... Args>
static T * AllocateNew (Args &&...args)
 

Constructor & Destructor Documentation

◆ LuaObject()

template<typename T >
LuaObject< T >::LuaObject ( )
inlineprotected

Member Function Documentation

◆ CallMethod() [1/3]

template<typename T >
template<typename Ret , typename Key , typename... Args>
Ret LuaObject< T >::CallMethod ( T *  o,
const Key &  key,
const Args &...  args 
)
inlinestatic
Here is the call graph for this function:

◆ CallMethod() [2/3]

template<typename T >
template<typename Key , typename... Args>
static void LuaObject< T >::CallMethod ( T *  o,
const Key &  key,
const Args &...  args 
)
inlinestatic

◆ CallMethod() [3/3]

template<typename T >
template<typename Ret1 , typename Ret2 , typename... Ret, typename Key , typename... Args>
std::tuple< Ret1, Ret2, Ret... > LuaObject< T >::CallMethod ( T *  o,
const Key &  key,
const Args &...  args 
)
inlinestatic
Here is the call graph for this function:

◆ CheckFromLua()

template<typename T >
static T * LuaObject< T >::CheckFromLua ( int  idx)
inlinestatic
Here is the call graph for this function:

◆ CreateInLua()

template<typename T >
template<typename... Args>
void LuaObject< T >::CreateInLua ( Args &&...  args)
inlinestatic

◆ DynamicCastPromotionTest()

template<typename T >
static bool LuaObject< T >::DynamicCastPromotionTest ( LuaWrappable o)
inlinestatic

◆ GetFromLua()

template<typename T >
static T * LuaObject< T >::GetFromLua ( int  idx)
inlinestatic
Here is the call graph for this function:

◆ PushComponentToLua()

template<typename T >
void LuaObject< T >::PushComponentToLua ( LuaWrappable o)
inlinestatic

◆ PushToLua() [1/5]

void LuaObject< SystemPath >::PushToLua ( const SystemPath o)

◆ PushToLua() [2/5]

void LuaObject< SystemPath >::PushToLua ( const SystemPath o)
Here is the call graph for this function:

◆ PushToLua() [3/5]

template<typename T >
void LuaObject< T >::PushToLua ( const T &  o)
inlinestatic

◆ PushToLua() [4/5]

template<typename T >
void LuaObject< T >::PushToLua ( DeleteEmitter o)
inlinestatic

◆ PushToLua() [5/5]

template<typename T >
void LuaObject< T >::PushToLua ( RefCounted o)
inlinestatic

◆ RegisterClass() [1/28]

void LuaObject< Body >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [2/28]

void LuaObject< CargoBody >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [3/28]

void LuaObject< Faction >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [4/28]

void LuaObject< HyperspaceCloud >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [5/28]

void LuaObject< Missile >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [6/28]

void LuaObject< ModelBody >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [7/28]

template<typename T >
static void LuaObject< T >::RegisterClass ( )
static

◆ RegisterClass() [8/28]

void LuaObject< PiGui::Instance >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [9/28]

void LuaObject< Planet >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [10/28]

void LuaObject< Player >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [11/28]

void LuaObject< PropertyMap >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [12/28]

void LuaObject< Random >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [13/28]

void LuaObject< SectorView >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [14/28]

void LuaObject< LuaSerializer >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [15/28]

void LuaObject< Ship >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [16/28]

void LuaObject< SpaceStation >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [17/28]

void LuaObject< Star >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [18/28]

void LuaObject< StarSystem >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [19/28]

void LuaObject< SystemBody >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [20/28]

void LuaObject< SystemPath >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [21/28]

void LuaObject< SystemView >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [22/28]

void LuaObject< LuaTimer >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [23/28]

void LuaObject< PiGui::Face >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [24/28]

void LuaObject< PiGui::Image >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [25/28]

void LuaObject< PiGui::ModelSpinner >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [26/28]

void LuaObject< RadarWidget >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [27/28]

void LuaObject< SceneGraph::Model >::RegisterClass ( )
Here is the call graph for this function:

◆ RegisterClass() [28/28]

void LuaObject< SceneGraph::ModelSkin >::RegisterClass ( )
Here is the call graph for this function:

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