18 #ifndef __REGISTRAR_H__
19 #define __REGISTRAR_H__
46 template<
typename Derived>
81 template<
typename Derived>
87 template<
typename Derived>
124 template<
typename Derived>
157 template<
typename Derived>
159 return new Derived();
162 template<
typename Derived>
172 #endif // __REGISTRAR_H__
void registerGeometry(std::string name, GeoCreateFunc func)
Registers (links) the geometry name name with the function func for creating objects in the Geometry ...
Definition: geometry.cpp:71
The abstract factory class for creating objects in the State family.
Definition: state.h:240
A template class for the registration of classes in the State family.
Definition: registrar.h:125
static State * createFunc()
This function creates an object of the Derived class and returns a pointer to the State class...
Definition: registrar.h:158
An abstract class for the initialization of the geometry of fluid objects.
Definition: geometry.h:38
The abstract factory class for creating objects in the Geometry family.
Definition: geometry.h:226
An abstract class for the initialization of the state of fluid objects.
Definition: state.h:41
static Geometry * createFunc()
This function creates an object of the Derived class and returns a pointer to the Geometry class...
Definition: registrar.h:82
static StateFactory & instance()
Returns reference to a Singleton object of class StateFactory.
Definition: state.cpp:75
GeometryRegistrar(std::string name)
constructor
Definition: registrar.h:88
StateRegistrar(std::string name)
constructor
Definition: registrar.h:163
This header file contains classes for the initialization of the state of fluid objects.
This header file contains classes for the initialization of the geometry of fluid objects...
static GeometryFactory & instance()
Returns reference to a Singleton object of class GeometryFactory.
Definition: geometry.cpp:66
A template class for the registration of classes in the Geometry family.
Definition: registrar.h:47
void registerState(std::string name, StateCreateFunc func)
Registers (links) the state name name with the function func for creating objects in the State family...
Definition: state.cpp:89