Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Types | Public Member Functions | Protected Member Functions | Private Attributes
concepts::PiecewiseFormulaFun< F, G > Class Template Reference

Piecewise defined function as an analytical function of another piecewiese defined function. More...

#include <formula.hh>

Inheritance diagram for concepts::PiecewiseFormulaFun< F, G >:
Inheritance graph
[legend]
Collaboration diagram for concepts::PiecewiseFormulaFun< F, G >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef concepts::Realtype< F >
::type 
G
typedef F value_type

Public Member Functions

void clear ()
 Clears the operations.
virtual PiecewiseFormulaFun< F,
G > * 
clone () const
 Virtual copy constructor.
virtual const F & dflt_value () const
 Gives default value.
virtual F & dflt_value ()
 Gives default value.
virtual F operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const =0
virtual F operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const =0
virtual F operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
virtual F operator() (const Connector &cell, const Real p, const Real t=0.0) const
 Gives the value in an particular cell on a particular point.
virtual F operator() (const Connector &cell, 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
virtual F operator() (const Connector &cell, 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< concepts::Realtype< F >::type > &elm, const Real p, const Real t=0.0) const =0
 Evaluates the formula.
PiecewiseFormulaFun< F, G > & operator*= (const F n)
PiecewiseFormulaFun< F, G > & operator+= (const F n)
 PiecewiseFormulaFun (PiecewiseFormulaBase< G > &formula)
PiecewiseFormulaFun< F, G > & reciprocal ()
virtual ~PiecewiseFormulaFun ()

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.

Private Attributes

PiecewiseFormulaBase< G > & formula_
 formula
std::vector< Operation< F > * > operations_
 operations

Detailed Description

template<typename F, typename G = F>
class concepts::PiecewiseFormulaFun< F, G >

Piecewise defined function as an analytical function of another piecewiese defined function.

There are operations for the result of the contained function.

Author:
Kersten Schmidt, 2005

Definition at line 421 of file formula.hh.


Member Typedef Documentation

template<typename F>
typedef concepts::Realtype<F>::type concepts::PiecewiseFormulaBase< F >::G [inherited]
typedef F concepts::ElementFormula< F, concepts::Realtype< F >::type >::value_type [inherited]

Reimplemented in concepts::Formula< F >.

Definition at line 31 of file elementFormula.hh.


Constructor & Destructor Documentation

template<typename F, typename G = F>
concepts::PiecewiseFormulaFun< F, G >::PiecewiseFormulaFun ( PiecewiseFormulaBase< G > &  formula)
template<typename F, typename G = F>
virtual concepts::PiecewiseFormulaFun< F, G >::~PiecewiseFormulaFun ( ) [virtual]

Member Function Documentation

template<typename F, typename G = F>
void concepts::PiecewiseFormulaFun< F, G >::clear ( )

Clears the operations.

template<typename F, typename G = F>
virtual PiecewiseFormulaFun<F,G>* concepts::PiecewiseFormulaFun< F, G >::clone ( ) const [virtual]

Virtual copy constructor.

Implements concepts::PiecewiseFormulaBase< F >.

template<typename F>
virtual const F& concepts::PiecewiseFormulaBase< F >::dflt_value ( ) const [inline, virtual, inherited]

Gives default value.

Definition at line 76 of file piecewiseFormula.hh.

template<typename F>
virtual F& concepts::PiecewiseFormulaBase< F >::dflt_value ( ) [inline, virtual, inherited]

Gives default value.

Definition at line 78 of file piecewiseFormula.hh.

template<typename F, typename G = F>
virtual std::ostream& concepts::PiecewiseFormulaFun< F, G >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::PiecewiseFormulaBase< F >.

virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() ( const ElementWithCell< concepts::Realtype< F >::type > &  elm,
const Real  p,
const Real  t = 0.0 
) const [pure virtual, inherited]

Evaluates the formula.

Parameters:
elmElement
pPoint in space in local element coordinates
tPoint in time
virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() ( const ElementWithCell< concepts::Realtype< F >::type > &  elm,
const Real3d p,
const Real  t = 0.0 
) const [pure virtual, inherited]
template<typename F>
virtual F concepts::PiecewiseFormulaBase< F >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const [inline, virtual, inherited]

Definition at line 52 of file piecewiseFormula.hh.

template<typename F, typename G = F>
virtual F concepts::PiecewiseFormulaFun< F, G >::operator() ( const Connector cell,
const Real3d p,
const Real  t = 0.0 
) const [virtual]
template<typename F, typename G = F>
virtual F concepts::PiecewiseFormulaFun< F, G >::operator() ( const Connector cell,
const Real  p,
const Real  t = 0.0 
) const [virtual]

Gives the value in an particular cell on a particular point.

Implements concepts::PiecewiseFormulaBase< F >.

template<typename F>
virtual F concepts::PiecewiseFormulaBase< F >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const [inline, virtual, inherited]

Definition at line 47 of file piecewiseFormula.hh.

virtual F concepts::ElementFormula< F, concepts::Realtype< F >::type >::operator() ( const ElementWithCell< concepts::Realtype< F >::type > &  elm,
const Real2d p,
const Real  t = 0.0 
) const [pure virtual, inherited]
template<typename F>
virtual F concepts::PiecewiseFormulaBase< F >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const [inline, virtual, inherited]

Definition at line 58 of file piecewiseFormula.hh.

template<typename F, typename G = F>
virtual F concepts::PiecewiseFormulaFun< F, G >::operator() ( const Connector cell,
const Real2d p,
const Real  t = 0.0 
) const [virtual]
template<typename F, typename G = F>
PiecewiseFormulaFun<F,G>& concepts::PiecewiseFormulaFun< F, G >::operator*= ( const F  n)
template<typename F, typename G = F>
PiecewiseFormulaFun<F,G>& concepts::PiecewiseFormulaFun< F, G >::operator+= ( const F  n)
template<typename F, typename G = F>
PiecewiseFormulaFun<F,G>& concepts::PiecewiseFormulaFun< F, G >::reciprocal ( )

Member Data Documentation

template<typename F, typename G = F>
PiecewiseFormulaBase<G>& concepts::PiecewiseFormulaFun< F, G >::formula_ [private]

formula

Definition at line 443 of file formula.hh.

template<typename F, typename G = F>
std::vector<Operation<F>*> concepts::PiecewiseFormulaFun< F, G >::operations_ [private]

operations

Definition at line 445 of file formula.hh.


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

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)