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

A class to declare a new builtin type. More...

#include <OGF/gom/types/gom_implementation.h>

Public Member Functions

 ogf_declare_builtin_type (const std::string &type_name)
 Declares a new builtin type. More...
 
 operator MetaBuiltinType * ()
 Gets the created MetaType object. More...
 

Detailed Description

template<class T>
class OGF::ogf_declare_builtin_type< T >

A class to declare a new builtin type.

Template Parameters
Tthe builtin type to be declared

Example of use:

MetaBuiltinType* mtype = ogf_declare_builtin_type<Color>("color");
Note
Used by the C++ code created by GOMGEN. Client code should not use these functions.

Definition at line 70 of file gom_implementation.h.

Constructor & Destructor Documentation

◆ ogf_declare_builtin_type()

template<class T >
OGF::ogf_declare_builtin_type< T >::ogf_declare_builtin_type ( const std::string &  type_name)
inlineexplicit

Declares a new builtin type.

Parameters
[in]type_namethe C++ type name of the type to be declared.

Definition at line 77 of file gom_implementation.h.

Member Function Documentation

◆ operator MetaBuiltinType *()

template<class T >
OGF::ogf_declare_builtin_type< T >::operator MetaBuiltinType * ( )
inline

Gets the created MetaType object.

Returns
a pointer to the created MetaType object.

Definition at line 99 of file gom_implementation.h.


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