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

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

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

Public Member Functions

 ogf_declare_class (const std::string &class_name, MetaClass *super_class)
 Declares a new class type. More...
 
 ogf_declare_class (const std::string &class_name, const std::string &super_class_name)
 Declares a new class type. More...
 
 ogf_declare_class (const std::string &class_name)
 Declares a new class type. More...
 
 operator MetaClass * ()
 Gets the created MetaClass object. More...
 

Detailed Description

template<class T>
class OGF::ogf_declare_class< T >

A class to declare a class type.

Template Parameters
Tthe class type to be declared

Example of use:

MetaClass* mclass = ogf_declare_class<ComboBox>(
"OGF::ComboBox","OGF::Widget"
);
Note
Used by the C++ code created by GOMGEN. Client code should not use these functions.

Definition at line 320 of file gom_implementation.h.

Constructor & Destructor Documentation

◆ ogf_declare_class() [1/3]

template<class T >
OGF::ogf_declare_class< T >::ogf_declare_class ( const std::string &  class_name,
MetaClass super_class 
)
inline

Declares a new class type.

Parameters
[in]class_namethe C++ type name of the class to be declared
[in]super_classa pointer to the MetaClass of the super class

Definition at line 329 of file gom_implementation.h.

◆ ogf_declare_class() [2/3]

template<class T >
OGF::ogf_declare_class< T >::ogf_declare_class ( const std::string &  class_name,
const std::string &  super_class_name 
)
inline

Declares a new class type.

Parameters
[in]class_namethe C++ type name of the class to be declared
[in]super_class_namethe C++ type name of the superclass

Definition at line 346 of file gom_implementation.h.

◆ ogf_declare_class() [3/3]

template<class T >
OGF::ogf_declare_class< T >::ogf_declare_class ( const std::string &  class_name)
inlineexplicit

Declares a new class type.

Parameters
[in]class_namethe C++ type name of the class to be declared

Definition at line 361 of file gom_implementation.h.

Member Function Documentation

◆ operator MetaClass *()

template<class T >
OGF::ogf_declare_class< T >::operator MetaClass * ( )
inline

Gets the created MetaClass object.

Returns
a pointer to the created MetaEnum object

Definition at line 373 of file gom_implementation.h.


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