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

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
concepts::ParsedFormula< Cmplx > Class Template Reference

#include <parsedFormula.hh>

Inheritance diagram for concepts::ParsedFormula< Cmplx >:
Inheritance graph
[legend]
Collaboration diagram for concepts::ParsedFormula< Cmplx >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Realtype< Cmplx >::type G
typedef concepts::Sequence
< std::pair< std::string,
std::string > > 
RepSeq
typedef Cmplx value_type

Public Member Functions

virtual ParsedFormula< Cmplx > * clone () const
 Virtual copy constructor.
virtual const Cmplxdflt_value () const
 Gives default value.
virtual Cmplxdflt_value ()
 Gives default value.
virtual Cmplx operator() (const Real p, const Real t=0.0) const
 Application operator.
virtual Cmplx operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
virtual Cmplx operator() (const ElementWithCell< concepts::Realtype< Cmplx >::type > &elm, const Real2d &p, const Real t=0.0) const =0
virtual Cmplx operator() (const ElementWithCell< concepts::Realtype< Cmplx >::type > &elm, const Real p, const Real t=0.0) const =0
 Evaluates the formula.
virtual Cmplx operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
virtual Cmplx operator() (const Real2d &p, const Real t=0.0) const
 Application operator.
virtual Cmplx operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
virtual Cmplx operator() (const ElementWithCell< concepts::Realtype< Cmplx >::type > &elm, const Real3d &p, const Real t=0.0) const =0
virtual Cmplx operator() (const Real3d &p, const Real t=0.0) const
 Application operator.
 ParsedFormula (const std::string formulaR, const std::string formulaI)
 Constructor.
void set (const std::string formula, uint i=0, RepSeq rep=RepSeq())
 Sets the i th formula.
virtual ~ParsedFormula ()
virtual Cmplx operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.
virtual Cmplx operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param.
virtual Cmplx 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.
Real process_ (const Real3d &p, uint i=0) const
 Processing the i th formula.

Protected Attributes

std::string formula_ [dim]
 The original formula.

Detailed Description

template<>
class concepts::ParsedFormula< Cmplx >

Examples:

BGT_0.cc, and exactDtN.cc.

Definition at line 108 of file parsedFormula.hh.


Member Typedef Documentation

typedef Realtype<Cmplx >::type concepts::Formula< Cmplx >::G [inherited]

Reimplemented from concepts::PiecewiseFormulaBase< Cmplx >.

Definition at line 35 of file formula.hh.

typedef concepts::Sequence<std::pair<std::string,std::string> > concepts::ParsedFormulaBase< dim >::RepSeq [inherited]

Definition at line 58 of file parsedFormula.hh.

typedef Cmplx concepts::Formula< Cmplx >::value_type [inherited]

Constructor & Destructor Documentation

concepts::ParsedFormula< Cmplx >::ParsedFormula ( const std::string  formulaR,
const std::string  formulaI 
)

Constructor.

virtual concepts::ParsedFormula< Cmplx >::~ParsedFormula ( ) [virtual]

Member Function Documentation

virtual ParsedFormula<Cmplx>* concepts::ParsedFormula< Cmplx >::clone ( ) const [virtual]

Virtual copy constructor.

Implements concepts::Formula< Cmplx >.

virtual Cmplx & concepts::PiecewiseFormulaBase< Cmplx >::dflt_value ( ) [inline, virtual, inherited]

Gives default value.

Definition at line 78 of file piecewiseFormula.hh.

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

Gives default value.

Definition at line 76 of file piecewiseFormula.hh.

virtual std::ostream& concepts::ParsedFormula< Cmplx >::info ( std::ostream &  os) const [protected, virtual]

Returns information in an output stream.

Reimplemented from concepts::PiecewiseFormulaBase< Cmplx >.

virtual Cmplx concepts::Formula< Cmplx >::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< Cmplx >.

Definition at line 54 of file formula.hh.

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

Application operator.

Evaluates the formula.

Parameters:
pPoint in space
tPoint in time

Implements concepts::Formula< Cmplx >.

virtual Cmplx concepts::PiecewiseFormulaBase< Cmplx >::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 Cmplx concepts::PiecewiseFormulaBase< Cmplx >::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.

virtual Cmplx concepts::Formula< Cmplx >::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< Cmplx >.

Definition at line 57 of file formula.hh.

virtual Cmplx concepts::PiecewiseFormulaBase< Cmplx >::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 Cmplx concepts::ParsedFormula< Cmplx >::operator() ( const Real2d p,
const Real  t = 0.0 
) const [virtual]

Application operator.

Evaluates the formula.

Parameters:
pPoint in space
tPoint in time

Implements concepts::Formula< Cmplx >.

virtual Cmplx concepts::ElementFormula< Cmplx , concepts::Realtype< Cmplx >::type >::operator() ( const ElementWithCell< concepts::Realtype< Cmplx >::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 Cmplx concepts::ParsedFormula< Cmplx >::operator() ( const Real  p,
const Real  t = 0.0 
) const [virtual]

Application operator.

Evaluates the formula.

Parameters:
pPoint in space
tPoint in time

Implements concepts::Formula< Cmplx >.

virtual Cmplx concepts::Formula< Cmplx >::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< Cmplx >.

Definition at line 51 of file formula.hh.

Real concepts::ParsedFormulaBase< dim >::process_ ( const Real3d p,
uint  i = 0 
) const [protected, inherited]

Processing the i th formula.

void concepts::ParsedFormulaBase< dim >::set ( const std::string  formula,
uint  i = 0,
RepSeq  rep = RepSeq() 
) [inherited]

Sets the i th formula.


Member Data Documentation

std::string concepts::ParsedFormulaBase< dim >::formula_[dim] [protected, inherited]

The original formula.

Definition at line 81 of file parsedFormula.hh.


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

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