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

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

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

Public Member Functions

 ogf_declare_enum (const std::string &type_name)
 Declares a new enum type. More...
 
 operator MetaEnum * ()
 Gets the created MetaEnum object. More...
 

Detailed Description

template<class T>
class OGF::ogf_declare_enum< T >

A class to declare a new enum type.

Template Parameters
Tthe enum type to be declared

Example of use:

MetaEnum* mtype = ogf_declare_builtin_type<Sign>("OGF::Sign");
mtype->add_value("NEGATIVE",-1);
mtype->add_value("ZERO",0);
mtype->add_value("POSITIVE",1);
Note
Used by the C++ code created by GOMGEN. Client code should not use these functions.

Definition at line 281 of file gom_implementation.h.

Constructor & Destructor Documentation

◆ ogf_declare_enum()

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

Declares a new enum type.

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

Definition at line 288 of file gom_implementation.h.

Member Function Documentation

◆ operator MetaEnum *()

template<class T >
OGF::ogf_declare_enum< T >::operator MetaEnum * ( )
inline

Gets the created MetaEnum object.

Returns
a pointer to the created MetaEnum object

Definition at line 301 of file gom_implementation.h.


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