chombo-discharge
Public Member Functions | List of all members
RtFactory< T, S > Class Template Reference

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) More...
 

Detailed Description

template<class T, class S>
class RtFactory< T, S >

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.

Member Function Documentation

◆ newLayout()

template<class T , class S >
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)

Parameters
[in]a_speciesRTE species.

The documentation for this class was generated from the following files: