chombo-discharge
|
Factory class for making ItoLayout. More...
#include <CD_ItoLayout.H>
Public Member Functions | |
ItoFactory () | |
Constructor. | |
~ItoFactory () | |
Destructor (does nothing). | |
RefCountedPtr< ItoLayout< T > > | newLayout (const Vector< RefCountedPtr< ItoSpecies >> &a_species) const |
Factory method which creates a new layout from a set of species. This can do automated casting between the template parameters (in case there are classes that derive from ItoSolver). More... | |
Factory class for making ItoLayout.
This is used for generating a layout – this class has no fundamental usefulness, it is basically a glorified casting machine. The template parameters T control the ItoLayout template parameter while the template parameter S controls the derived class. E.g. if one has a derived class S the factory can automatically create either an ItoLayout, or it can automatically cast to an ItoLayout<T>.
RefCountedPtr< ItoLayout< T > > ItoFactory< T, S >::newLayout | ( | const Vector< RefCountedPtr< ItoSpecies >> & | a_species | ) | const |
Factory method which creates a new layout from a set of species. This can do automated casting between the template parameters (in case there are classes that derive from ItoSolver).
[in] | a_species | List of species which will be solved for. |