Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
A template class for the registration of classes in the Geometry family. More...
#include <registrar.h>
Public Member Functions | |
GeometryRegistrar (std::string name) | |
constructor More... | |
Static Public Member Functions | |
static Geometry * | createFunc () |
This function creates an object of the Derived class and returns a pointer to the Geometry class. More... | |
A template class for the registration of classes in the Geometry family.
The purpose of this class is to have a unified place to register objects in the Geometry family. Registration means linking a geometry name (given in the argument list of the constructor) and a class in the Geometry family. It is implemented as a template class to accomondate various child classes in the Geometry family.
Created on: 2014/06/07
GeometryRegistrar< Derived >::GeometryRegistrar | ( | std::string | name | ) |
constructor
Registers the name given in the argument list. Registration means linking name to a class in the Geometry family
name | a geometry name |
Example usage: Registers a_name with class SomeGeometry
|
static |
This function creates an object of the Derived class and returns a pointer to the Geometry class.
None |