|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Template singelton class defining a general object creation factory. More...
#include <FFaGenericFactory.H>


Public Member Functions | |
| bool | registerCreator (const Key &key, const CreatorCB &creator) |
| Registers a new object creation method on key. More... | |
| T * | create (const Key &key, ArgType id) |
| Invokes the object creation method for given key. More... | |
| void | getKeys (std::vector< Key > &keys) const |
| Gets a list of all registered object creator keys. More... | |
| void | clear () |
| Clears the object creator map myCreatorMap. More... | |
Private Types | |
| using | CreatorCB = FFaDynCB2< ArgType, T *& > |
| Type alias for object creation callback. More... | |
| using | CreatorMap = std::map< Key, CreatorCB > |
| Key --> creator callback mapping. More... | |
Private Attributes | |
| CreatorMap | myCreatorMap |
| Object creator callbacks container. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FFaSingelton< FFaGenericFactory< T, std::string, int > > | |
| static FFaGenericFactory< T, std::string, int > * | instance () |
| Returns the actual instance of this class. More... | |
| static void | removeInstance () |
| Deletes the dynamically allocated instance. More... | |
| static bool | allocated () |
| Returns true, if the instance has been allocated. More... | |
Protected Member Functions inherited from FFaSingelton< FFaGenericFactory< T, std::string, int > > | |
| FFaSingelton () | |
| The constructor is protected to allow objects of sub-classes only. More... | |
| FFaSingelton (const FFaSingelton &)=delete | |
| Disable default copy constructor. More... | |
| FFaSingelton & | operator= (const FFaSingelton &)=delete |
| Disable default assignment operator. More... | |
Template singelton class defining a general object creation factory.
This class is used for managing methods for creating instances of a varity of classes, such as finite element types, etc. Call back methods creating an instance of a specific type are stored as function pointers in a map with the object type name as lookup key.
|
private |
Type alias for object creation callback.
|
private |
Key --> creator callback mapping.
|
inline |
Clears the object creator map myCreatorMap.
|
inline |
Invokes the object creation method for given key.
|
inline |
Gets a list of all registered object creator keys.
|
inline |
Registers a new object creation method on key.
|
private |
Object creator callbacks container.