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

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

Detailed Description

template<class T, class S>
class ItoFactory< T, S >

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

Member Function Documentation

◆ newLayout()

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

Parameters
[in]a_speciesList of species which will be solved for.

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