Ardour  9.0-pre0-427-gd2a3450e2f
CFunc Struct Reference

#include <CFunctions.h>

Classes

struct  Call
 
struct  Call< FnPtr, void >
 
struct  CallConstMember
 
struct  CallConstMember< MemFnPtr, void >
 
struct  CallConstMemberCFunction
 
struct  CallConstMemberRef
 
struct  CallConstMemberRef< MemFnPtr, void >
 
struct  CallMember
 
struct  CallMember< MemFnPtr, void >
 
struct  CallMemberCFunction
 
struct  CallMemberCPtr
 
struct  CallMemberCPtr< MemFnPtr, T, void >
 
struct  CallMemberCPtrFunctionHelper
 
struct  CallMemberFunctionHelper
 
struct  CallMemberFunctionHelper< MemFnPtr, false >
 
struct  CallMemberPtr
 
struct  CallMemberPtr< MemFnPtr, T, void >
 
struct  CallMemberPtrFunctionHelper
 
struct  CallMemberRef
 
struct  CallMemberRef< MemFnPtr, void >
 
struct  CallMemberRefCPtr
 
struct  CallMemberRefCPtr< MemFnPtr, T, void >
 
struct  CallMemberRefCPtrFunctionHelper
 
struct  CallMemberRefFunctionHelper
 
struct  CallMemberRefFunctionHelper< MemFnPtr, false >
 
struct  CallMemberRefPtr
 
struct  CallMemberRefPtr< MemFnPtr, T, void >
 
struct  CallMemberRefPtrFunctionHelper
 
struct  CallMemberRefWPtr
 
struct  CallMemberRefWPtr< MemFnPtr, T, void >
 
struct  CallMemberRefWPtrFunctionHelper
 
struct  CallMemberWPtr
 
struct  CallMemberWPtr< MemFnPtr, T, void >
 
struct  CallMemberWPtrFunctionHelper
 
struct  CallRef
 
struct  CallRef< FnPtr, void >
 
struct  CastClass
 
struct  CastConstClass
 
struct  CastMemberPtr
 
struct  ClassEqualCheck
 
struct  ClassEqualCheck< std::shared_ptr< T > >
 
struct  ClassEqualCheck< std::weak_ptr< T > >
 
struct  PtrEqualCheck
 
struct  PtrNullCheck
 
struct  WPtrEqualCheck
 
struct  WPtrNullCheck
 

Static Public Member Functions

static int indexMetaMethod (lua_State *L)
 
static int newindexMetaMethod (lua_State *L)
 
static int readOnlyError (lua_State *L)
 
template<class T >
static int getVariable (lua_State *L)
 
template<class T >
static int setVariable (lua_State *L)
 
template<class C , typename T >
static int getPtrProperty (lua_State *L)
 
template<class C , typename T >
static int getWPtrProperty (lua_State *L)
 
template<class C , typename T >
static int setPtrProperty (lua_State *L)
 
template<class C , typename T >
static int setWPtrProperty (lua_State *L)
 
template<class C >
static int gcMetaMethod (lua_State *L)
 
static int gcNOOPMethod (lua_State *L)
 
template<class C , typename T >
static int getProperty (lua_State *L)
 
template<typename U >
static int getConst (lua_State *L)
 
template<class C , typename T >
static int setProperty (lua_State *L)
 
template<typename T >
static int array_index (lua_State *L)
 
template<typename T >
static int array_newindex (lua_State *L)
 
template<typename T >
static int getArray (lua_State *L)
 
template<typename T >
static int getTable (lua_State *L)
 
template<typename T >
static int setTable (lua_State *L)
 
template<typename T >
static int offsetArray (lua_State *L)
 
template<class T , class C >
static int tableToListHelper (lua_State *L, C *const t)
 
template<class T , class C >
static int tableToList (lua_State *L)
 
template<class T , class C >
static int ptrTableToList (lua_State *L)
 
template<class T , class C >
static int vectorToArray (lua_State *L)
 
template<class T , class C >
static int listIterIter (lua_State *L)
 
template<class T , class C >
static int listIterHelper (lua_State *L, C const *const t)
 
template<class T , class C >
static int listIter (lua_State *L)
 
template<class T , class C >
static int ptrListIter (lua_State *L)
 
template<class T , class C >
static int listToTableHelper (lua_State *L, C const *const t)
 
template<class T , class C >
static int listToTable (lua_State *L)
 
template<class T , class C >
static int ptrListToTable (lua_State *L)
 
template<class T , class C >
static int pushbackptr (lua_State *L)
 
template<class K , class V >
static int tableToMap (lua_State *L)
 
template<class K , class V >
static int mapIterIter (lua_State *L)
 
template<class K , class V >
static int mapIter (lua_State *L)
 
template<class K , class V >
static int mapToTable (lua_State *L)
 
template<class K , class V >
static int mapAt (lua_State *L)
 
template<class T , class C >
static int tableToSet (lua_State *L)
 
template<class T , class C >
static int setIterIter (lua_State *L)
 
template<class T , class C >
static int setInsert (lua_State *L)
 
template<class T , class C >
static int setIter (lua_State *L)
 
template<class T , class C >
static int setToTable (lua_State *L)
 
template<unsigned int T>
static int tableToBitSet (lua_State *L)
 
template<unsigned int T>
static int bitSetToTable (lua_State *L)
 

Detailed Description

Definition at line 32 of file CFunctions.h.

Member Function Documentation

◆ array_index()

template<typename T >
static int CFunc::array_index ( lua_State L)
inlinestatic

Definition at line 1163 of file CFunctions.h.

◆ array_newindex()

template<typename T >
static int CFunc::array_newindex ( lua_State L)
inlinestatic

Definition at line 1173 of file CFunctions.h.

◆ bitSetToTable()

template<unsigned int T>
static int CFunc::bitSetToTable ( lua_State L)
inlinestatic

Definition at line 1586 of file CFunctions.h.

◆ gcMetaMethod()

template<class C >
static int CFunc::gcMetaMethod ( lua_State L)
inlinestatic

__gc metamethod for a class.

Definition at line 1101 of file CFunctions.h.

◆ gcNOOPMethod()

static int CFunc::gcNOOPMethod ( lua_State L)
inlinestatic

Definition at line 1108 of file CFunctions.h.

◆ getArray()

template<typename T >
static int CFunc::getArray ( lua_State L)
inlinestatic

Definition at line 1183 of file CFunctions.h.

◆ getConst()

template<typename U >
static int CFunc::getConst ( lua_State L)
inlinestatic

lua_CFunction to get a constant (enum)

Definition at line 1135 of file CFunctions.h.

◆ getProperty()

template<class C , typename T >
static int CFunc::getProperty ( lua_State L)
inlinestatic

lua_CFunction to get a class data member.

The pointer-to-member is in the first upvalue. The class userdata object is at the top of the Lua stack.

Definition at line 1121 of file CFunctions.h.

◆ getPtrProperty()

template<class C , typename T >
static int CFunc::getPtrProperty ( lua_State L)
inlinestatic

Definition at line 504 of file CFunctions.h.

◆ getTable()

template<typename T >
static int CFunc::getTable ( lua_State L)
inlinestatic

Definition at line 1194 of file CFunctions.h.

◆ getVariable()

template<class T >
static int CFunc::getVariable ( lua_State L)
inlinestatic

lua_CFunction to get a variable.

This is used for global variables or class static data members.

The pointer to the data is in the first upvalue.

Definition at line 173 of file CFunctions.h.

◆ getWPtrProperty()

template<class C , typename T >
static int CFunc::getWPtrProperty ( lua_State L)
inlinestatic

Definition at line 517 of file CFunctions.h.

◆ indexMetaMethod()

static int CFunc::indexMetaMethod ( lua_State L)
inlinestatic

__index metamethod for a namespace or class static members.

This handles: Retrieving functions and class static methods, stored in the metatable. Reading global and class static data, stored in the __propget table. Reading global and class properties, stored in the __propget table.

Definition at line 43 of file CFunctions.h.

◆ listIter()

template<class T , class C >
static int CFunc::listIter ( lua_State L)
inlinestatic

Definition at line 1307 of file CFunctions.h.

◆ listIterHelper()

template<class T , class C >
static int CFunc::listIterHelper ( lua_State L,
C const *const  t 
)
inlinestatic

Definition at line 1296 of file CFunctions.h.

◆ listIterIter()

template<class T , class C >
static int CFunc::listIterIter ( lua_State L)
inlinestatic

Definition at line 1280 of file CFunctions.h.

◆ listToTable()

template<class T , class C >
static int CFunc::listToTable ( lua_State L)
inlinestatic

Definition at line 1348 of file CFunctions.h.

◆ listToTableHelper()

template<class T , class C >
static int CFunc::listToTableHelper ( lua_State L,
C const *const  t 
)
inlinestatic

Definition at line 1324 of file CFunctions.h.

◆ mapAt()

template<class K , class V >
static int CFunc::mapAt ( lua_State L)
inlinestatic

Definition at line 1455 of file CFunctions.h.

◆ mapIter()

template<class K , class V >
static int CFunc::mapIter ( lua_State L)
inlinestatic

Definition at line 1424 of file CFunctions.h.

◆ mapIterIter()

template<class K , class V >
static int CFunc::mapIterIter ( lua_State L)
inlinestatic

Definition at line 1405 of file CFunctions.h.

◆ mapToTable()

template<class K , class V >
static int CFunc::mapToTable ( lua_State L)
inlinestatic

Definition at line 1438 of file CFunctions.h.

◆ newindexMetaMethod()

static int CFunc::newindexMetaMethod ( lua_State L)
inlinestatic

__newindex metamethod for a namespace or class static members.

The __propset table stores proxy functions for assignment to: Global and class static data. Global and class properties.

Definition at line 107 of file CFunctions.h.

◆ offsetArray()

template<typename T >
static int CFunc::offsetArray ( lua_State L)
inlinestatic

Definition at line 1220 of file CFunctions.h.

◆ ptrListIter()

template<class T , class C >
static int CFunc::ptrListIter ( lua_State L)
inlinestatic

Definition at line 1314 of file CFunctions.h.

◆ ptrListToTable()

template<class T , class C >
static int CFunc::ptrListToTable ( lua_State L)
inlinestatic

Definition at line 1355 of file CFunctions.h.

◆ ptrTableToList()

template<class T , class C >
static int CFunc::ptrTableToList ( lua_State L)
inlinestatic

Definition at line 1260 of file CFunctions.h.

◆ pushbackptr()

template<class T , class C >
static int CFunc::pushbackptr ( lua_State L)
inlinestatic

Definition at line 1366 of file CFunctions.h.

◆ readOnlyError()

static int CFunc::readOnlyError ( lua_State L)
inlinestatic

lua_CFunction to report an error writing to a read-only value.

The name of the variable is in the first upvalue.

Definition at line 155 of file CFunctions.h.

◆ setInsert()

template<class T , class C >
static int CFunc::setInsert ( lua_State L)
inlinestatic

Definition at line 1518 of file CFunctions.h.

◆ setIter()

template<class T , class C >
static int CFunc::setIter ( lua_State L)
inlinestatic

Definition at line 1529 of file CFunctions.h.

◆ setIterIter()

template<class T , class C >
static int CFunc::setIterIter ( lua_State L)
inlinestatic

Definition at line 1501 of file CFunctions.h.

◆ setProperty()

template<class C , typename T >
static int CFunc::setProperty ( lua_State L)
inlinestatic

lua_CFunction to set a class data member.

The pointer-to-member is in the first upvalue. The class userdata object is at the top of the Lua stack.

Definition at line 1151 of file CFunctions.h.

◆ setPtrProperty()

template<class C , typename T >
static int CFunc::setPtrProperty ( lua_State L)
inlinestatic

Definition at line 534 of file CFunctions.h.

◆ setTable()

template<typename T >
static int CFunc::setTable ( lua_State L)
inlinestatic

Definition at line 1208 of file CFunctions.h.

◆ setToTable()

template<class T , class C >
static int CFunc::setToTable ( lua_State L)
inlinestatic

Definition at line 1542 of file CFunctions.h.

◆ setVariable()

template<class T >
static int CFunc::setVariable ( lua_State L)
inlinestatic

lua_CFunction to set a variable.

This is used for global variables or class static data members.

The pointer to the data is in the first upvalue.

Definition at line 191 of file CFunctions.h.

◆ setWPtrProperty()

template<class C , typename T >
static int CFunc::setWPtrProperty ( lua_State L)
inlinestatic

Definition at line 547 of file CFunctions.h.

◆ tableToBitSet()

template<unsigned int T>
static int CFunc::tableToBitSet ( lua_State L)
inlinestatic

Definition at line 1560 of file CFunctions.h.

◆ tableToList()

template<class T , class C >
static int CFunc::tableToList ( lua_State L)
inlinestatic

Definition at line 1253 of file CFunctions.h.

◆ tableToListHelper()

template<class T , class C >
static int CFunc::tableToListHelper ( lua_State L,
C *const  t 
)
inlinestatic

C++ STL iterators

Definition at line 1234 of file CFunctions.h.

◆ tableToMap()

template<class K , class V >
static int CFunc::tableToMap ( lua_State L)
inlinestatic

Definition at line 1380 of file CFunctions.h.

◆ tableToSet()

template<class T , class C >
static int CFunc::tableToSet ( lua_State L)
inlinestatic

Definition at line 1475 of file CFunctions.h.

◆ vectorToArray()

template<class T , class C >
static int CFunc::vectorToArray ( lua_State L)
inlinestatic

Definition at line 1270 of file CFunctions.h.


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