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

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
concepts::VectorFormula< F, dim > Class Template Reference

Element formula returning a vector. More...

#include <vectorFormula.hh>

Inheritance diagram for concepts::VectorFormula< F, dim >:
Inheritance graph
[legend]
Collaboration diagram for concepts::VectorFormula< F, dim >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef RCP< const
concepts::Formula< F > > 
EntryFormulaRCP
typedef Realtype< Point< F,
dim > >::type 
G
typedef Point< F, dim > value_type

Public Member Functions

virtual VectorFormula< F, dim > * clone () const
 Virtual copy constructor.
virtual const Point< F, dim > & dflt_value () const
 Gives default value.
virtual Point< F, dim > & dflt_value ()
 Gives default value.
const std::vector
< EntryFormulaRCP > & 
getFormulas ()
virtual Point< F, dim > operator() (const ElementWithCell< concepts::Realtype< Point< F, dim > >::type > &elm, const Real3d &p, const Real t=0.0) const =0
virtual Point< F, dim > operator() (const ElementWithCell< concepts::Realtype< Point< F, dim > >::type > &elm, const Real p, const Real t=0.0) const =0
 Evaluates the formula.
Point< F, dim > operator() (const Real2d &p, const Real t=0.0) const
 Application operator.
virtual Point< F, dim > operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
Point< F, dim > operator() (const Real3d &p, const Real t=0.0) const
 Application operator.
virtual Point< F, dim > operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
Point< F, dim > operator() (const Real p, const Real t=0.0) const
 Evaluates the formula.
virtual Point< F, dim > operator() (const ElementWithCell< concepts::Realtype< Point< F, dim > >::type > &elm, const Real2d &p, const Real t=0.0) const =0
virtual Point< F, dim > operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
EntryFormulaRCPoperator[] (int i)
 VectorFormula (const std::vector< EntryFormulaRCP > &formulas)
 Combines a vector of dim Formulas to a VectorFormula.
 VectorFormula ()
virtual ~VectorFormula ()
virtual Point< F, dim > operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.
virtual Point< F, dim > operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.
virtual Point< F, dim > 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.

Protected Attributes

std::vector< EntryFormulaRCPformulas_

Detailed Description

template<typename F, int dim>
class concepts::VectorFormula< F, dim >

Element formula returning a vector.

Author:
Kersten Schmidt, 2010

Definition at line 21 of file vectorFormula.hh.


Member Typedef Documentation

template<typename F, int dim>
typedef RCP<const concepts::Formula<F> > concepts::VectorFormula< F, dim >::EntryFormulaRCP

Definition at line 25 of file vectorFormula.hh.

typedef Realtype<Point< F, dim > >::type concepts::Formula< Point< F, dim > >::G [inherited]

Reimplemented from concepts::PiecewiseFormulaBase< Point< F, dim > >.

Definition at line 35 of file formula.hh.

template<typename F, int dim>
typedef Point<F, dim> concepts::VectorFormula< F, dim >::value_type

Reimplemented from concepts::Formula< Point< F, dim > >.

Definition at line 24 of file vectorFormula.hh.


Constructor & Destructor Documentation

template<typename F, int dim>
concepts::VectorFormula< F, dim >::VectorFormula ( ) [inline]

Definition at line 27 of file vectorFormula.hh.

template<typename F, int dim>
concepts::VectorFormula< F, dim >::VectorFormula ( const std::vector< EntryFormulaRCP > &  formulas) [inline]

Combines a vector of dim Formulas to a VectorFormula.

Each Formula is given as a refence counting pointer (see RCP).

Definition at line 37 of file vectorFormula.hh.

template<typename F, int dim>
virtual concepts::VectorFormula< F, dim >::~VectorFormula ( ) [inline, virtual]

Definition at line 86 of file vectorFormula.hh.


Member Function Documentation

template<typename F, int dim>
virtual VectorFormula<F,dim>* concepts::VectorFormula< F, dim >::clone ( ) const [inline, virtual]

Virtual copy constructor.

Implements concepts::Formula< Point< F, dim > >.

Definition at line 75 of file vectorFormula.hh.

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

Gives default value.

Definition at line 76 of file piecewiseFormula.hh.

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

Gives default value.

Definition at line 78 of file piecewiseFormula.hh.

template<typename F, int dim>
const std::vector< EntryFormulaRCP >& concepts::VectorFormula< F, dim >::getFormulas ( ) [inline]

Definition at line 88 of file vectorFormula.hh.

template<typename F, int dim>
virtual std::ostream& concepts::VectorFormula< F, dim >::info ( std::ostream &  os) const [inline, protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::PiecewiseFormulaBase< Point< F, dim > >.

Definition at line 103 of file vectorFormula.hh.

virtual Point< F, dim > concepts::ElementFormula< Point< F, dim > , concepts::Realtype< Point< F, dim > >::type >::operator() ( const ElementWithCell< concepts::Realtype< Point< F, dim > >::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 Point< F, dim > concepts::PiecewiseFormulaBase< Point< F, dim > >::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.

virtual Point< F, dim > concepts::ElementFormula< Point< F, dim > , concepts::Realtype< Point< F, dim > >::type >::operator() ( const ElementWithCell< concepts::Realtype< Point< F, dim > >::type > &  elm,
const Real3d p,
const Real  t = 0.0 
) const [pure virtual, inherited]
virtual Point< F, dim > concepts::PiecewiseFormulaBase< Point< F, dim > >::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 Point< F, dim > concepts::Formula< Point< F, dim > >::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< Point< F, dim > >.

Definition at line 57 of file formula.hh.

virtual Point< F, dim > concepts::Formula< Point< F, dim > >::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< Point< F, dim > >.

Definition at line 54 of file formula.hh.

virtual Point< F, dim > concepts::Formula< Point< F, dim > >::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< Point< F, dim > >.

Definition at line 51 of file formula.hh.

template<typename F, int dim>
Point<F, dim> concepts::VectorFormula< F, dim >::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< Point< F, dim > >.

Definition at line 65 of file vectorFormula.hh.

virtual Point< F, dim > concepts::PiecewiseFormulaBase< Point< F, dim > >::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, int dim>
Point<F, dim> concepts::VectorFormula< F, dim >::operator() ( const Real  p,
const Real  t = 0.0 
) const [inline, virtual]

Evaluates the formula.

Parameters:
pPoint in space in physical coordinates
tPoint in time

Implements concepts::Formula< Point< F, dim > >.

Definition at line 47 of file vectorFormula.hh.

template<typename F, int dim>
Point<F, dim> concepts::VectorFormula< F, dim >::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< Point< F, dim > >.

Definition at line 56 of file vectorFormula.hh.

virtual Point< F, dim > concepts::ElementFormula< Point< F, dim > , concepts::Realtype< Point< F, dim > >::type >::operator() ( const ElementWithCell< concepts::Realtype< Point< F, dim > >::type > &  elm,
const Real2d p,
const Real  t = 0.0 
) const [pure virtual, inherited]
template<typename F, int dim>
EntryFormulaRCP& concepts::VectorFormula< F, dim >::operator[] ( int  i) [inline]

Definition at line 93 of file vectorFormula.hh.


Member Data Documentation

template<typename F, int dim>
std::vector< EntryFormulaRCP > concepts::VectorFormula< F, dim >::formulas_ [protected]

Definition at line 101 of file vectorFormula.hh.


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

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