Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
gom_implementation.h File Reference

Functions to declare GOM meta-types. More...

Go to the source code of this file.

Classes

class  OGF::ogf_declare_builtin_type< T >
 A class to declare a new builtin type. More...
 
class  OGF::ogf_declare_builtin_type< bool >
 ogf_declare_builtin_type specialization for bool. More...
 
class  OGF::ogf_declare_builtin_type< void >
 ogf_declare_builtin_type specialization for void. More...
 
class  OGF::ogf_declare_builtin_type< std::string >
 ogf_declare_builtin_type specialization for std::string. More...
 
class  OGF::ogf_declare_pointer_type< T >
 a version of ogf_declare_builtin_type specialization for pointers. More...
 
class  OGF::ogf_declare_enum< T >
 A class to declare a new enum type. More...
 
class  OGF::ogf_declare_struct< T >
 A class to declare a new struct type. More...
 
class  OGF::ogf_declare_class< T >
 A class to declare a class type. More...
 
class  OGF::ogf_declare_abstract_class< T >
 A class to declare an abstract class type. More...
 

Namespaces

namespace  OGF
 Global Graphite namespace.
 

Macros

#define ogf_offset(structtype, field)    &(reinterpret_cast<structtype*>(0)->field)
 
#define ogf_add_field(structtype, field)    add_field(#field, ogf_offset(structtype, field))
 

Detailed Description

Functions to declare GOM meta-types.

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

Definition in file gom_implementation.h.

Macro Definition Documentation

◆ ogf_add_field

#define ogf_add_field (   structtype,
  field 
)     add_field(#field, ogf_offset(structtype, field))

Definition at line 315 of file gom_implementation.h.

◆ ogf_offset

#define ogf_offset (   structtype,
  field 
)     &(reinterpret_cast<structtype*>(0)->field)

Definition at line 312 of file gom_implementation.h.