Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
OGF::DynamicFactoryMetaClass Class Reference
Inheritance diagram for OGF::DynamicFactoryMetaClass:
OGF::FactoryMetaClass OGF::Factory GEO::Counted

Public Member Functions

 DynamicFactoryMetaClass (MetaClass *mclass, Callable *action=nullptr)
 FactoryMetaClass constructor.
Object * create (const ArgList &args) override
 Creates an objet.
Public Member Functions inherited from OGF::FactoryMetaClass
 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

Definition at line 77 of file dynamic_object.h.

Constructor & Destructor Documentation

◆ DynamicFactoryMetaClass()

OGF::DynamicFactoryMetaClass::DynamicFactoryMetaClass ( MetaClass * mclass,
Callable * action = nullptr )
inline

FactoryMetaClass constructor.

Parameters
[in]mclassa pointer to the meta class

Definition at line 83 of file dynamic_object.h.

Member Function Documentation

◆ create()

Object * OGF::DynamicFactoryMetaClass::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.


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