Base class for factories. More...
#include <FactoryBase.h>

Public Member Functions | |
| virtual | ~FactoryBase () |
| destructor | |
Static Public Member Functions | |
| static void | deleteFactories () |
| static function that deletes all factories in the internal registry maintained in a static variable | |
Protected Member Functions | |
| FactoryBase () | |
| Constructor. | |
| virtual void | deleteFactory ()=0 |
| Virtual abstract function that deletes the factory. | |
Static Private Attributes | |
| static std::vector< FactoryBase * > | s_vFactoryRegistry |
| statically held list of Factories. | |
Base class for factories.
This class maintains a registry of all factories that derive from it, and deletes them all when its static method deleteFactories is invoked.
Definition at line 22 of file FactoryBase.h.
| virtual ~FactoryBase | ( | ) | [inline, virtual] |
destructor
Definition at line 27 of file FactoryBase.h.
| FactoryBase | ( | ) | [inline, protected] |
Constructor.
Adds the current object to the current static list
Definition at line 51 of file FactoryBase.h.
References FactoryBase::s_vFactoryRegistry.
| static void deleteFactories | ( | ) | [inline, static] |
static function that deletes all factories in the internal registry maintained in a static variable
Definition at line 33 of file FactoryBase.h.
References FactoryBase::s_vFactoryRegistry.
Referenced by Cantera::appdelete().
| virtual void deleteFactory | ( | ) | [protected, pure virtual] |
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implemented in SpeciesThermoFactory, ThermoFactory, VPSSMgrFactory, and FalloffFactory.
std::vector< FactoryBase * > s_vFactoryRegistry [static, private] |
statically held list of Factories.
Assigned storage for the static member of the FactoryBase class.
Definition at line 65 of file FactoryBase.h.
Referenced by FactoryBase::deleteFactories(), and FactoryBase::FactoryBase().
1.6.3