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

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< FieldSolvernewSolver () const
 Factory method. More...
 

Detailed Description

template<class T>
class FieldSolverFactory< T >

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.

Member Function Documentation

◆ newSolver()

template<class T >
RefCountedPtr< FieldSolver > FieldSolverFactory< T >::newSolver

Factory method.

This instantiates a bare pointer of type T and casts it to RefCountedPtr<FieldSolver>.


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