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

Public Types | Public Member Functions | Protected Member Functions | Private Attributes
concepts::Frm_Sum< F, H, J > Class Template Reference

Class for a sum of formula. More...

#include <frm_sum.hh>

Inheritance diagram for concepts::Frm_Sum< F, H, J >:
Inheritance graph
[legend]
Collaboration diagram for concepts::Frm_Sum< F, H, J >:
Collaboration graph
[legend]

List of all members.

Public Types

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

Public Member Functions

virtual Frm_Sum< F, H, J > * clone () const
 Virtual copy constructor.
virtual const F & dflt_value () const
 Gives default value.
virtual F & dflt_value ()
 Gives default value.
 Frm_Sum (const RCP< const Formula< H > > frm1, const RCP< const Formula< J > > frm2)
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 Real p, const Real t=0.0) const =0
 Evaluates the formula.
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 Real2d &p, const Real t=0.0) const
 Application operator.
virtual F operator() (const Real p, const Real t=0.0) const
 Application operator.
virtual F operator() (const Real3d &p, const Real t=0.0) const
 Application operator.
virtual F operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
virtual F operator() (const ElementWithCell< concepts::Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const =0
virtual F operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.
virtual F operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.
virtual F operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.

Protected Member Functions

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

Private Attributes

RCP< const Formula< H > > frm1_
 First Formula.
RCP< const Formula< J > > frm2_
 Second Formula.

Detailed Description

template<class F, class H = F, class J = F>
class concepts::Frm_Sum< F, H, J >

Class for a sum of formula.

Result of formula is sum of the results of the formulas.

Generalisation of class ComposeFormula.

Author:
Kersten Schmidt, 2010

Definition at line 23 of file frm_sum.hh.


Member Typedef Documentation

template<typename F>
typedef Realtype<F>::type concepts::Formula< F >::G [inherited]

Reimplemented from concepts::PiecewiseFormulaBase< F >.

Definition at line 35 of file formula.hh.

template<typename F>
typedef F concepts::Formula< F >::value_type [inherited]

Reimplemented from concepts::ElementFormula< F, concepts::Realtype< F >::type >.

Reimplemented in concepts::VectorFormula< F, dim >.

Definition at line 34 of file formula.hh.


Constructor & Destructor Documentation

template<class F, class H = F, class J = F>
concepts::Frm_Sum< F, H, J >::Frm_Sum ( const RCP< const Formula< H > >  frm1,
const RCP< const Formula< J > >  frm2 
) [inline]

Definition at line 25 of file frm_sum.hh.


Member Function Documentation

template<class F, class H = F, class J = F>
virtual Frm_Sum<F,H,J>* concepts::Frm_Sum< F, H, J >::clone ( ) const [inline, virtual]

Virtual copy constructor.

Implements concepts::Formula< F >.

Definition at line 41 of file frm_sum.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>
virtual const F& concepts::PiecewiseFormulaBase< F >::dflt_value ( ) const [inline, virtual, inherited]

Gives default value.

Definition at line 76 of file piecewiseFormula.hh.

template<class F, class H = F, class J = F>
virtual std::ostream& concepts::Frm_Sum< F, H, J >::info ( std::ostream &  os) const [inline, protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::PiecewiseFormulaBase< F >.

Definition at line 45 of file frm_sum.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]
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
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>
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>
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.

template<class F, class H = F, class J = F>
virtual F concepts::Frm_Sum< F, H, J >::operator() ( const Real2d p,
const Real  t = 0.0 
) const [inline, virtual]

Application operator.

Evaluates the formula.

Parameters:
pPoint in space
tPoint in time

Implements concepts::Formula< F >.

Definition at line 35 of file frm_sum.hh.

template<class F, class H = F, class J = F>
virtual F concepts::Frm_Sum< F, H, J >::operator() ( const Real3d p,
const Real  t = 0.0 
) const [inline, virtual]

Application operator.

Evaluates the formula.

Parameters:
pPoint in space
tPoint in time

Implements concepts::Formula< F >.

Definition at line 38 of file frm_sum.hh.

template<typename F>
virtual F concepts::Formula< F >::operator() ( const Connector cntr,
const Real  p,
const Real  t = 0.0 
) const [inline, virtual, inherited]

Convenience implementation, that by default ignores its elm param.

Implements concepts::PiecewiseFormulaBase< F >.

Definition at line 51 of file formula.hh.

template<class F, class H = F, class J = F>
virtual F concepts::Frm_Sum< F, H, J >::operator() ( const Real  p,
const Real  t = 0.0 
) const [inline, virtual]

Application operator.

Evaluates the formula.

Parameters:
pPoint in space
tPoint in time

Implements concepts::Formula< F >.

Definition at line 32 of file frm_sum.hh.

template<typename F>
virtual F concepts::Formula< F >::operator() ( const Connector cntr,
const Real3d p,
const Real  t = 0.0 
) const [inline, virtual, inherited]

Convenience implementation, that by default ignores its elm param.

Implements concepts::PiecewiseFormulaBase< F >.

Definition at line 57 of file formula.hh.

template<typename F>
virtual F concepts::Formula< F >::operator() ( const Connector cntr,
const Real2d p,
const Real  t = 0.0 
) const [inline, virtual, inherited]

Convenience implementation, that by default ignores its elm param.

Implements concepts::PiecewiseFormulaBase< F >.

Definition at line 54 of file formula.hh.

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]

Member Data Documentation

template<class F, class H = F, class J = F>
RCP<const Formula<H> > concepts::Frm_Sum< F, H, J >::frm1_ [private]

First Formula.

Definition at line 50 of file frm_sum.hh.

template<class F, class H = F, class J = F>
RCP<const Formula<J> > concepts::Frm_Sum< F, H, J >::frm2_ [private]

Second Formula.

Definition at line 52 of file frm_sum.hh.


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

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