Factory class to create Func1 compound objects - version B. More...
#include <Func1Factory.h>
Factory class to create Func1 compound objects - version B.
This class is mainly used via the newFunc1(const string&, const shared_ptr<Func1>, double) function, for example:
Definition at line 90 of file Func1Factory.h.
| Public Member Functions | |
| void | deleteFactory () override | 
| Virtual abstract function that deletes the factory. | |
|  Public Member Functions inherited from Factory< Func1, const shared_ptr< Func1 >, double > | |
| Func1 * | create (const string &name, Args... args) | 
| Create an object using the object construction function corresponding to "name" and the provided constructor arguments. | |
| void | reg (const string &name, function< Func1 *(Args...)> f) | 
| Register a new object construction function. | |
| void | addAlias (const string &original, const string &alias) | 
| Add an alias for an existing registered type. | |
| string | canonicalize (const string &name) | 
| Get the canonical name registered for a type. | |
| bool | exists (const string &name) const | 
| Returns true if nameis registered with this factory. | |
|  Public Member Functions inherited from FactoryBase | |
| virtual | ~FactoryBase () | 
| destructor | |
| Static Public Member Functions | |
| static Math1FactoryB * | factory () | 
| Return a pointer to the factory. | |
|  Static Public Member Functions inherited from FactoryBase | |
| static void | deleteFactories () | 
| static function that deletes all factories in the internal registry maintained in a static variable | |
| Private Member Functions | |
| Math1FactoryB () | |
| default constructor, which is defined as private | |
| Static Private Attributes | |
| static Math1FactoryB * | s_factory = 0 | 
| Pointer to the single instance of the factory. | |
| static std::mutex | s_mutex | 
| Mutex for use when calling the factory. | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from Factory< Func1, const shared_ptr< Func1 >, double > | |
| void | addDeprecatedAlias (const string &original, const string &alias) | 
| Add a deprecated alias for an existing registered type. | |
|  Protected Member Functions inherited from FactoryBase | |
| FactoryBase () | |
| Constructor. | |
| virtual void | deleteFactory ()=0 | 
| Virtual abstract function that deletes the factory. | |
| 
 | private | 
default constructor, which is defined as private
Definition at line 116 of file Func1Factory.cpp.
| 
 | static | 
Return a pointer to the factory.
On the first call, a new instance is created. Since there is no need to instantiate more than one factory, on all subsequent calls, a pointer to the existing factory is returned.
Definition at line 129 of file Func1Factory.cpp.
| 
 | overridevirtual | 
Virtual abstract function that deletes the factory.
This must be properly defined in child objects.
Implements FactoryBase.
Definition at line 138 of file Func1Factory.cpp.
| 
 | staticprivate | 
Pointer to the single instance of the factory.
Definition at line 104 of file Func1Factory.h.
| 
 | staticprivate | 
Mutex for use when calling the factory.
Definition at line 110 of file Func1Factory.h.