concepts::PiecewiseFormula0< F > Class Template Referenceabstract
Piecewise defined function, which consists of a formula and a default value. More...
#include <formula.hh>
Public Types | |
typedef concepts::Realtype< F >::type | G |
typedef F | value_type |
Public Member Functions | |
virtual PiecewiseFormula0< F > * | clone () const |
Virtual constructor. More... | |
virtual ElementFormula< F, concepts::Realtype< F >::type > * | clone () const=0 |
Virtual copy constructor. More... | |
virtual F & | dflt_value () |
Gives default value. More... | |
virtual const F & | dflt_value () const |
Gives default value. More... | |
virtual F | operator() (const Connector &cell, const Real p, const Real t=0.0) const |
Gives the value in an particular cell. More... | |
virtual F | operator() (const Connector &cell, const Real2d &p, const Real t=0.0) const |
virtual F | operator() (const Connector &cell, const Real3d &p, const Real t=0.0) const |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
virtual F | operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const |
virtual F | operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const |
PiecewiseFormula0 (const Formula< F > &formula) | |
Constructor. More... | |
virtual | ~PiecewiseFormula0 () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
F | dflt_value_ |
default value More... | |
std::unique_ptr< Formula< F > > | formula_ |
Detailed Description
template<typename F>
class concepts::PiecewiseFormula0< F >
Piecewise defined function, which consists of a formula and a default value.
Definition at line 36 of file formula.hh.
Member Typedef Documentation
◆ G
|
inherited |
Definition at line 45 of file piecewiseFormula.hh.
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ PiecewiseFormula0()
|
inline |
Constructor.
Definition at line 39 of file formula.hh.
◆ ~PiecewiseFormula0()
|
inlinevirtual |
Definition at line 40 of file formula.hh.
Member Function Documentation
◆ clone() [1/2]
|
inlinevirtual |
Virtual constructor.
Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 41 of file formula.hh.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual copy constructor.
◆ dflt_value() [1/2]
|
inlinevirtualinherited |
Gives default value.
Definition at line 83 of file piecewiseFormula.hh.
◆ dflt_value() [2/2]
|
inlinevirtualinherited |
Gives default value.
Definition at line 81 of file piecewiseFormula.hh.
◆ info()
|
inlineprotectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::PiecewiseFormulaBase< F >.
Definition at line 55 of file formula.hh.
◆ operator()() [1/9]
|
inlinevirtual |
Gives the value in an particular cell.
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 45 of file formula.hh.
◆ operator()() [2/9]
|
inlinevirtual |
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 48 of file formula.hh.
◆ operator()() [3/9]
|
inlinevirtual |
Implements concepts::PiecewiseFormulaBase< F >.
Definition at line 51 of file formula.hh.
◆ operator()() [4/9]
|
pure virtualinherited |
◆ operator()() [5/9]
|
pure virtualinherited |
◆ operator()() [6/9]
|
pure virtualinherited |
◆ operator()() [7/9]
|
inlinevirtualinherited |
Definition at line 52 of file piecewiseFormula.hh.
◆ operator()() [8/9]
|
inlinevirtualinherited |
Definition at line 57 of file piecewiseFormula.hh.
◆ operator()() [9/9]
|
inlinevirtualinherited |
Definition at line 63 of file piecewiseFormula.hh.
Member Data Documentation
◆ dflt_value_
|
privateinherited |
default value
Definition at line 88 of file piecewiseFormula.hh.
◆ formula_
|
private |
Definition at line 58 of file formula.hh.
The documentation for this class was generated from the following file:
- geometry/formula.hh