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