chombo-discharge
|
Factory class for poisson solvers. Used to instantiate any FieldSolver-derived classes with automatic casting to the base class. More...
#include <CD_FieldSolverFactory.H>
Public Member Functions | |
FieldSolverFactory () | |
Constructor (does nothing) | |
~FieldSolverFactory () | |
Constructor (does nothing) | |
RefCountedPtr< FieldSolver > | newSolver () const |
Factory method. More... | |
Factory class for poisson solvers. Used to instantiate any FieldSolver-derived classes with automatic casting to the base class.
This class is mostly used for easily making FieldSolvers of any type into a FieldSolver (i.e. casting to smart pointer), but as a side-effect it also provides a factory method for generating any number of field solvers.
RefCountedPtr< FieldSolver > FieldSolverFactory< T >::newSolver |
Factory method.
This instantiates a bare pointer of type T and casts it to RefCountedPtr<FieldSolver>.