InFact
Interpreter and factory for easily creating C++ objects at run-time
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
infact::FactoryBase Class Referenceabstract

An interface for all Factory instances, specifying a few pure virtual methods. More...

#include <factory.h>

Inheritance diagram for infact::FactoryBase:
infact::Factory< T >

Public Member Functions

virtual ~FactoryBase ()
 
virtual void Clear ()=0
 Clears the (possibly static) data of this factory. More...
 
virtual const string BaseName () const =0
 Returns the name of the base type of objects constructed by this factory. More...
 
virtual void CollectRegistered (unordered_set< string > &registered) const =0
 Collects the names of types registered with this factory. More...
 
virtual VarMapBaseCreateVarMap (Environment *env) const =0
 
virtual VarMapBaseCreateVectorVarMap (Environment *env) const =0
 

Detailed Description

An interface for all Factory instances, specifying a few pure virtual methods.

Definition at line 428 of file factory.h.

Constructor & Destructor Documentation

virtual infact::FactoryBase::~FactoryBase ( )
inlinevirtual

Definition at line 430 of file factory.h.

Member Function Documentation

virtual const string infact::FactoryBase::BaseName ( ) const
pure virtual

Returns the name of the base type of objects constructed by this factory.

Implemented in infact::Factory< T >.

virtual void infact::FactoryBase::Clear ( )
pure virtual

Clears the (possibly static) data of this factory.

Note that invoking this method will prevent the factory from functioning! It should only be invoked when the factory is no longer needed by the current process.

Implemented in infact::Factory< T >.

virtual void infact::FactoryBase::CollectRegistered ( unordered_set< string > &  registered) const
pure virtual

Collects the names of types registered with this factory.

Parameters
[out]registeredregistered a set to be modified by this method so that it contains the names of concrete types registered with this factory

Implemented in infact::Factory< T >.

virtual VarMapBase* infact::FactoryBase::CreateVarMap ( Environment env) const
pure virtual

Implemented in infact::Factory< T >.

virtual VarMapBase* infact::FactoryBase::CreateVectorVarMap ( Environment env) const
pure virtual

Implemented in infact::Factory< T >.


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