Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
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.
Object * create (const ArgList &args) override
 Creates an objet.
MetaClass * meta_class () const
 Gets the MetaClass.
Public Member Functions inherited from OGF::Factory
 Factory ()
 Factory constructor.
 ~Factory () override
 Factory destructor.
Public Member Functions inherited from GEO::Counted
void ref () const
 Increments the reference count.
void unref () const
 Decrements the reference count.
bool is_shared () const
 Check if the object is shared.
int nb_refs () const
 Gets the number of references that point to this object.

Additional Inherited Members

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

Detailed Description

A Factory that uses a MetaClass.

Definition at line 555 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 561 of file meta_class.h.

Member Function Documentation

◆ create()

Object * OGF::FactoryMetaClass::create ( const ArgList & args)
overridevirtual

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.

◆ meta_class()

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

Gets the MetaClass.

Returns
a pointer to the MetaClass.

Definition at line 578 of file meta_class.h.


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