Graphite  Version 3
An experimental 3D geometry processing program
OGF::ogf_meta< T > Class Template Reference

Provides easy access to meta information from C++ types. More...

#include <OGF/gom/reflection/meta.h>

Static Public Member Functions

static MetaTypetype ()
 Gets the MetaType. More...
 
static MetaClassmeta_class ()
 Gets the MetaClass. More...
 
static Serializerserializer ()
 Gets the Serializer. More...
 
static Factoryfactory ()
 Gets the Factory. More...
 

Detailed Description

template<class T>
class OGF::ogf_meta< T >

Provides easy access to meta information from C++ types.

Template Parameters
Tthe C++ type to be queried

Definition at line 257 of file meta.h.

Member Function Documentation

◆ factory()

template<class T >
static Factory* OGF::ogf_meta< T >::factory ( )
inlinestatic

Gets the Factory.

MetaType needs to be a MetaClass (i.e. T should be a class), else a warning message is issued.

Returns
a pointer to the Serializer or nullptr if none is available

Definition at line 329 of file meta.h.

◆ meta_class()

template<class T >
static MetaClass* OGF::ogf_meta< T >::meta_class ( )
inlinestatic

Gets the MetaClass.

Queries the MetaType and casts it to a MetaClass if it is a MetaClass, else issues a warning message.

Returns
a pointer to the MetaClass or nullptr if the MetaType is not a MetaClass

Definition at line 287 of file meta.h.

◆ serializer()

template<class T >
static Serializer* OGF::ogf_meta< T >::serializer ( )
inlinestatic

Gets the Serializer.

Queries the MetaType and gets the Serializer associated with it if any, else issues a warning message.

Returns
a pointer to the Serializer or nullptr if none is available

Definition at line 309 of file meta.h.

◆ type()

template<class T >
static MetaType* OGF::ogf_meta< T >::type ( )
inlinestatic

Gets the MetaType.

Returns
a pointer to the MetaType

Definition at line 264 of file meta.h.


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