MAIA bb96820c
Multiphysics at AIA
|
Class to handle creation of boundary condition objects. More...
#include <dgcartesianboundaryconditionfactory.h>
Public Types | |
using | IdType = MInt |
using | ReturnType = std::unique_ptr< DgBoundaryCondition< nDim, SysEqn > > |
using | SolverType = DgCartesianSolver< nDim, SysEqn > |
using | ProductCreator = std::function< ReturnType(SolverType &, IdType)> |
Public Member Functions | |
DgBoundaryConditionFactory (SolverType &solver) | |
Constructor only saves solver reference to member variable. More... | |
template<class T > | |
MBool | add (const IdType id, maia::dg::bc::Type< T >) |
Add new type to factory. More... | |
ReturnType | create (const IdType id) |
Create type from identifier. More... | |
Private Attributes | |
SolverType & | m_solver |
MFactory< DgBoundaryCondition< nDim, SysEqn >, IdType, ReturnType, ProductCreator, SolverType &, IdType > | m_factory |
nDim | See DgCartesianSolver for definition. |
SysEqn | See DgCartesianSolver for definition. |
This is a class following the factory pattern as described in Alexandrescu (2001).
References: Andrei Alexandrescu (2001): Modern C++ Design.
Definition at line 48 of file dgcartesianboundaryconditionfactory.h.
using DgBoundaryConditionFactory< nDim, SysEqn >::IdType = MInt |
Definition at line 50 of file dgcartesianboundaryconditionfactory.h.
using DgBoundaryConditionFactory< nDim, SysEqn >::ProductCreator = std::function<ReturnType(SolverType&, IdType)> |
Definition at line 53 of file dgcartesianboundaryconditionfactory.h.
using DgBoundaryConditionFactory< nDim, SysEqn >::ReturnType = std::unique_ptr<DgBoundaryCondition<nDim, SysEqn> > |
Definition at line 51 of file dgcartesianboundaryconditionfactory.h.
using DgBoundaryConditionFactory< nDim, SysEqn >::SolverType = DgCartesianSolver<nDim, SysEqn> |
Definition at line 52 of file dgcartesianboundaryconditionfactory.h.
|
inlineexplicit |
Definition at line 57 of file dgcartesianboundaryconditionfactory.h.
|
inline |
Definition at line 61 of file dgcartesianboundaryconditionfactory.h.
|
inline |
Definition at line 66 of file dgcartesianboundaryconditionfactory.h.
|
private |
Definition at line 70 of file dgcartesianboundaryconditionfactory.h.
|
private |
Definition at line 69 of file dgcartesianboundaryconditionfactory.h.