Graphite  Version 3
An experimental 3D geometry processing program
OGF::FactoryMetaClass Class Reference

A Factory that uses a MetaClass. More...

#include <OGF/gom/reflection/meta_class.h>

Inheritance diagram for OGF::FactoryMetaClass:
OGF::Factory GEO::Counted OGF::DynamicFactoryMetaClass

Public Member Functions

 FactoryMetaClass (MetaClass *mclass)
 FactoryMetaClass constructor. More...
 
virtual Objectcreate (const ArgList &args)
 Creates an objet. More...
 
MetaClassmeta_class () const
 Gets the MetaClass. More...
 
- Public Member Functions inherited from OGF::Factory
 Factory ()
 Factory constructor.
 
virtual ~Factory ()
 Factory destructor.
 
- Public Member Functions inherited from GEO::Counted
void ref () const
 Increments the reference count. More...
 
void unref () const
 Decrements the reference count. More...
 
bool is_shared () const
 Check if the object is shared. More...
 
int nb_refs () const
 Gets the number of references that point to this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GEO::Counted
static void ref (const Counted *counted)
 Increments the reference count. More...
 
static void unref (const Counted *counted)
 Decrements the reference count. More...
 
- Protected Member Functions inherited from GEO::Counted
 Counted ()
 Creates a reference counted object. More...
 
virtual ~Counted ()
 Destroys a reference counted object. More...
 

Detailed Description

A Factory that uses a MetaClass.

Definition at line 538 of file meta_class.h.

Constructor & Destructor Documentation

◆ FactoryMetaClass()

OGF::FactoryMetaClass::FactoryMetaClass ( MetaClass mclass)
inline

FactoryMetaClass constructor.

Parameters
[in]mclassa pointer to the meta class

Definition at line 544 of file meta_class.h.

Member Function Documentation

◆ create()

virtual Object* OGF::FactoryMetaClass::create ( const ArgList args)
virtual

Creates an objet.

Selects the best constructor according to the arguments.

Parameters
[in]argsa const reference to the list of arguments
Returns
the created object
See also
MetaClass::best_constructor()

Implements OGF::Factory.

Reimplemented in OGF::DynamicFactoryMetaClass.

◆ meta_class()

MetaClass* OGF::FactoryMetaClass::meta_class ( ) const
inline

Gets the MetaClass.

Returns
a pointer to the MetaClass.

Definition at line 561 of file meta_class.h.


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