#include <parsedFormula.hh>

Inheritance diagram for concepts::ParsedFormula< Real >:
concepts::Formula< Real > concepts::ParsedFormulaBase< 1 > concepts::SphericalFormula< Real >

Public Types

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

Public Member Functions

virtual ParsedFormula< Real > * clone () const
 
virtual Formulaclone () const=0
 
virtual Real operator() (const Real p, const Real t=0.0) const
 Application operator. More...
 
virtual Real operator() (const Real2d &p, const Real t=0.0) const
 Application operator. More...
 
virtual Real operator() (const Real3d &p, const Real t=0.0) const
 Application operator. More...
 
 ParsedFormula (const std::string formula)
 Constructor. More...
 
void set (const std::string formula, uint i=0, RepSeq rep=RepSeq())
 Sets the i th formula. More...
 
virtual ~ParsedFormula ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 
Real process_ (const Real3d &p, const Real t=0.0, uint i=0) const
 Processing the i th formula (with time-dependency variable) More...
 

Protected Attributes

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

Private Attributes

uint len_ [dim]
 Length of the parsed formula
More...
 
Array< ucharpgm_ [dim]
 The parsed formula. More...
 

Detailed Description

Examples
hpFEM2d.cc, and parallelizationTutorial.cc.

Definition at line 97 of file parsedFormula.hh.

Member Typedef Documentation

◆ G

typedef Realtype<Real >::type concepts::Formula< Real >::G
inherited

Definition at line 37 of file formula.hh.

◆ RepSeq

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

Definition at line 62 of file parsedFormula.hh.

◆ value_type

typedef Real concepts::Formula< Real >::value_type
inherited

Definition at line 36 of file formula.hh.

Constructor & Destructor Documentation

◆ ParsedFormula()

concepts::ParsedFormula< Real >::ParsedFormula ( const std::string  formula)

Constructor.

◆ ~ParsedFormula()

virtual concepts::ParsedFormula< Real >::~ParsedFormula ( )
virtual

Member Function Documentation

◆ clone() [1/2]

virtual ParsedFormula<Real>* concepts::ParsedFormula< Real >::clone ( ) const
virtual

◆ clone() [2/2]

virtual Formula* concepts::Formula< Real >::clone ( ) const
pure virtualinherited

◆ info()

virtual std::ostream& concepts::ParsedFormula< Real >::info ( std::ostream &  os) const
protectedvirtual

◆ operator()() [1/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 53 of file formula.hh.

◆ operator()() [2/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 56 of file formula.hh.

◆ operator()() [3/6]

virtual Real concepts::Formula< Real >::operator() ( const Connector cntr,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Convenience implementation, that by default ignores its elm param.

Definition at line 59 of file formula.hh.

◆ operator()() [4/6]

virtual Real concepts::ParsedFormula< Real >::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< Real >.

Reimplemented in concepts::SphericalFormula< Real >.

◆ operator()() [5/6]

virtual Real concepts::ParsedFormula< Real >::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< Real >.

Reimplemented in concepts::SphericalFormula< Real >.

◆ operator()() [6/6]

virtual Real concepts::ParsedFormula< Real >::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< Real >.

Reimplemented in concepts::SphericalFormula< Real >.

◆ process_()

Real concepts::ParsedFormulaBase< dim >::process_ ( const Real3d p,
const Real  t = 0.0,
uint  i = 0 
) const
protectedinherited

Processing the i th formula (with time-dependency variable)

◆ set()

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

Sets the i th formula.

Member Data Documentation

◆ formula_

std::string concepts::ParsedFormulaBase< dim >::formula_[dim]
protectedinherited

The original formula.

Definition at line 85 of file parsedFormula.hh.

◆ len_

uint concepts::ParsedFormulaBase< dim >::len_[dim]
privateinherited

Length of the parsed formula

Definition at line 90 of file parsedFormula.hh.

◆ pgm_

Array<uchar> concepts::ParsedFormulaBase< dim >::pgm_[dim]
privateinherited

The parsed formula.

Definition at line 88 of file parsedFormula.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich