Ardour  9.0-pre0-350-gf17a656217
ClassInfo< T > Class Template Reference

#include <ClassInfo.h>

Static Public Member Functions

static void const * getStaticKey ()
 
static void const * getClassKey ()
 
static void const * getConstKey ()
 

Detailed Description

template<class T>
class ClassInfo< T >

Unique Lua registry keys for a class.

Each registered class inserts three keys into the registry, whose values are the corresponding static, class, and const metatables. This allows a quick and reliable lookup for a metatable from a template type.

Definition at line 46 of file ClassInfo.h.

Member Function Documentation

◆ getClassKey()

template<class T >
static void const* ClassInfo< T >::getClassKey ( )
inlinestatic

Get the key for the class table.

The class table holds the data members, properties, and member functions of a class. Read-only data and properties, and const member functions are also placed here (to save a lookup in the const table).

Definition at line 75 of file ClassInfo.h.

◆ getConstKey()

template<class T >
static void const* ClassInfo< T >::getConstKey ( )
inlinestatic

Get the key for the const table.

The const table holds read-only data members and properties, and const member functions of a class.

Definition at line 86 of file ClassInfo.h.

◆ getStaticKey()

template<class T >
static void const* ClassInfo< T >::getStaticKey ( )
inlinestatic

Get the key for the static table.

The static table holds the static data members, static properties, and static member functions for a class.

Definition at line 63 of file ClassInfo.h.


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