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

a version of ogf_declare_builtin_type specialization for pointers. More...

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

Public Member Functions

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

Detailed Description

template<class T>
class OGF::ogf_declare_pointer_type< T >

a version of ogf_declare_builtin_type specialization for pointers.

We did not use a specialization as in the code below, because MSVC 6 does not seem to support it.

template <class T> class ogf_declare_builtin_type<T*> {
...
};

\TODO test whether it works with more modern versions of MSVC.

Note
Used by the C++ code created by GOMGEN. Client code should not use these functions.

Definition at line 232 of file gom_implementation.h.

Constructor & Destructor Documentation

◆ ogf_declare_pointer_type()

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

Declares a new builtin pointer type.

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

Definition at line 239 of file gom_implementation.h.

Member Function Documentation

◆ operator MetaBuiltinType *()

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

Gets the created MetaType object.

Returns
a pointer to the created MetaType object.

Definition at line 261 of file gom_implementation.h.


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