Piecewise defined function defined by attributes. More...
#include <formula.hh>


Public Types | |
| typedef HashMap < ElementFormulaContainer< F, G > > | ElemFormulaMap |
| Mapping from the elements on to the formula. | |
| typedef F | value_type |
Public Member Functions | |
| virtual PiecewiseElementFormula< F, G > * | clone () const |
| Virtual copy constructor. | |
| virtual F | operator() (const ElementWithCell< G > &elm, const Real3d &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 Real p, const Real t=0.0) const |
| Evaluates the formula. | |
| PiecewiseElementFormula (const F defaultV=0) | |
| void | set (concepts::Set< uint > attribs, const ElementFormulaContainer< F, G > formula) |
| void | set (const uint attrib, const ElementFormulaContainer< F, G > formula) |
| Set the ElementFormula for all cells with attribute attrib. | |
| virtual | ~PiecewiseElementFormula () |
Public Attributes | |
| F | defaultV_ |
| Default value. | |
| ElemFormulaMap | formulas_ |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Piecewise defined function defined by attributes.
For an attribute and so an area a formula is given.
Definition at line 283 of file formula.hh.
| typedef HashMap< ElementFormulaContainer<F, G> > concepts::PiecewiseElementFormula< F, G >::ElemFormulaMap |
Mapping from the elements on to the formula.
Definition at line 354 of file formula.hh.
typedef F concepts::ElementFormula< F, G >::value_type [inherited] |
Reimplemented in concepts::Formula< F >, concepts::MatrixElementFormula< F, dim, G >, concepts::VectorFormula< F, dim >, concepts::Formula< concepts::Point< Cmplx, 2 > >, concepts::Formula< Point< F, dim > >, concepts::Formula< Cmplx >, concepts::Formula< Real >, and concepts::Formula< Real2d >.
Definition at line 31 of file elementFormula.hh.
| concepts::PiecewiseElementFormula< F, G >::PiecewiseElementFormula | ( | const F | defaultV = 0 | ) | [inline] |
Definition at line 285 of file formula.hh.
| virtual concepts::PiecewiseElementFormula< F, G >::~PiecewiseElementFormula | ( | ) | [inline, virtual] |
Definition at line 290 of file formula.hh.
| virtual PiecewiseElementFormula<F, G>* concepts::PiecewiseElementFormula< F, G >::clone | ( | ) | const [inline, virtual] |
Virtual copy constructor.
Implements concepts::ElementFormula< F, G >.
Definition at line 292 of file formula.hh.

| virtual std::ostream& concepts::PiecewiseElementFormula< F, G >::info | ( | std::ostream & | os | ) | const [inline, protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 347 of file formula.hh.
| virtual F concepts::PiecewiseElementFormula< F, G >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real3d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual] |
Implements concepts::ElementFormula< F, G >.
Definition at line 296 of file formula.hh.

| virtual F concepts::PiecewiseElementFormula< F, G >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual] |
Evaluates the formula.
Implements concepts::ElementFormula< F, G >.
Definition at line 318 of file formula.hh.

| virtual F concepts::PiecewiseElementFormula< F, G >::operator() | ( | const ElementWithCell< G > & | elm, |
| const Real2d & | p, | ||
| const Real | t = 0.0 |
||
| ) | const [inline, virtual] |
Implements concepts::ElementFormula< F, G >.
Definition at line 307 of file formula.hh.

| void concepts::PiecewiseElementFormula< F, G >::set | ( | concepts::Set< uint > | attribs, |
| const ElementFormulaContainer< F, G > | formula | ||
| ) | [inline] |
Definition at line 337 of file formula.hh.
| void concepts::PiecewiseElementFormula< F, G >::set | ( | const uint | attrib, |
| const ElementFormulaContainer< F, G > | formula | ||
| ) | [inline] |
Set the ElementFormula for all cells with attribute attrib.
Definition at line 331 of file formula.hh.
| F concepts::PiecewiseElementFormula< F, G >::defaultV_ |
Default value.
Definition at line 357 of file formula.hh.
| ElemFormulaMap concepts::PiecewiseElementFormula< F, G >::formulas_ |
Definition at line 355 of file formula.hh.