|
chombo-discharge
|
Factory class for RtLayout. More...
#include <CD_RtLayout.H>
Public Member Functions | |
| RtFactory () | |
| Constructor (does nothing) | |
| ~RtFactory () | |
| Destructor (does nothing) | |
| RefCountedPtr< RtLayout< T > > | newLayout (const Vector< RefCountedPtr< RtSpecies > > &a_species) const |
| Get a new Layout. This will cast S to a specific class (T) | |
Factory class for RtLayout.
Factory class is very simple; since we don't want to template RtLayout we use a factory to instantiate solvers of any RtSolver inherited class, and then return a layout with the casted classes. That's about it.
| RefCountedPtr< RtLayout< T > > RtFactory< T, S >::newLayout | ( | const Vector< RefCountedPtr< RtSpecies > > & | a_species | ) | const |
Get a new Layout. This will cast S to a specific class (T)
| [in] | a_species | RTE species. |