concepts::ElementFormulaContainer< F, G > Class Template Referenceabstract
#include <elementFormulaContainer.hh>
Public Types | |
typedef F | value_type |
Public Member Functions | |
virtual ElementFormulaContainer< F, G > * | clone () const |
Virtual copy constructor. More... | |
virtual ElementFormula< F, typename Realtype< F >::type > * | clone () const=0 |
Virtual copy constructor. More... | |
ElementFormulaContainer () | |
Constructor with no argument. More... | |
ElementFormulaContainer (const ElementFormula< F, G > &frm) | |
Constructor for an element formula, takes a clone. More... | |
ElementFormulaContainer (const ElementFormula< F, G > *frm) | |
Constructor for a pointer to an element formula in dynamic memory which will be deleted by this class. More... | |
ElementFormulaContainer (const ElementFormulaContainer< F, G > &frm) | |
Copy constructor. More... | |
ElementFormulaContainer (const F x) | |
Special constructor for a constant. More... | |
ElementFormulaContainer (const RCP< const ElementFormula< F, G > > frm) | |
Constructor for an RCP to an element formula, replaces the own RCP. More... | |
bool | empty () const |
Returns true if no formula is stored. More... | |
const ElementFormula< F, G > & | frm () const |
virtual F | operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< G > &elm, const Real1d &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 |
virtual F | operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual F | operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0 |
Evaluates the formula. More... | |
virtual | ~ElementFormulaContainer () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Private Attributes | |
RCP< const ElementFormula< F, G > > | frm_ |
Element formula is stored as a RCP. More... | |
Detailed Description
template<class F, typename G = typename Realtype<F>::type>
class concepts::ElementFormulaContainer< F, G >
Definition at line 22 of file elementFormulaContainer.hh.
Member Typedef Documentation
◆ value_type
|
inherited |
Definition at line 37 of file elementFormula.hh.
Constructor & Destructor Documentation
◆ ElementFormulaContainer() [1/6]
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer | ( | const F | x | ) |
Special constructor for a constant.
So, a constant can simply given to functions where a ElementFormulaContainer<F,G> is expected.
- See also
- testsuite/testFormula.cc
◆ ElementFormulaContainer() [2/6]
|
inline |
Constructor with no argument.
Definition at line 35 of file elementFormulaContainer.hh.
◆ ElementFormulaContainer() [3/6]
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer | ( | const ElementFormula< F, G > & | frm | ) |
Constructor for an element formula, takes a clone.
◆ ElementFormulaContainer() [4/6]
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer | ( | const RCP< const ElementFormula< F, G > > | frm | ) |
◆ ElementFormulaContainer() [5/6]
|
explicit |
Constructor for a pointer to an element formula in dynamic memory which will be deleted by this class.
◆ ElementFormulaContainer() [6/6]
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer | ( | const ElementFormulaContainer< F, G > & | frm | ) |
Copy constructor.
◆ ~ElementFormulaContainer()
|
virtual |
Member Function Documentation
◆ clone() [1/2]
|
inlinevirtual |
Virtual copy constructor.
Implements concepts::Cloneable.
Definition at line 65 of file elementFormulaContainer.hh.
◆ clone() [2/2]
|
pure virtualinherited |
Virtual copy constructor.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
◆ empty()
|
inline |
Returns true if no formula is stored.
Definition at line 72 of file elementFormulaContainer.hh.
◆ frm()
|
inline |
Definition at line 69 of file elementFormulaContainer.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
◆ operator()() [1/7]
|
virtual |
◆ operator()() [2/7]
|
inlinevirtual |
Definition at line 57 of file elementFormulaContainer.hh.
◆ operator()() [3/7]
|
virtual |
◆ operator()() [4/7]
|
virtual |
◆ operator()() [5/7]
|
pure virtualinherited |
Evaluates the formula.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
◆ operator()() [6/7]
|
pure virtualinherited |
Evaluates the formula.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
◆ operator()() [7/7]
|
pure virtualinherited |
Evaluates the formula.
Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.
Member Data Documentation
◆ frm_
|
private |
Element formula is stored as a RCP.
Definition at line 79 of file elementFormulaContainer.hh.
The documentation for this class was generated from the following file:
- formula/elementFormulaContainer.hh