concepts::PiecewiseConstDynArrayFormula< F > Class Template Referenceabstract

Piecewise constant function defined by attributes, base on dynamic array. More...

#include <formula.hh>

Inheritance diagram for concepts::PiecewiseConstDynArrayFormula< F >:
concepts::PiecewiseFormulaBase< Real > concepts::ElementFormula< Real, concepts::Realtype< Real >::type > concepts::Cloneable concepts::OutputOperator

Public Types

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

Public Member Functions

virtual PiecewiseConstDynArrayFormula< F > * clone () const
 Virtual constructor. More...
 
virtual PiecewiseFormulaBase< Real > * clone () const=0
 Virtual constructor. More...
 
virtual Realdflt_value ()
 Gives default value. More...
 
virtual const Realdflt_value () const
 Gives default value. More...
 
virtual F operator() (const Connector &cell, const Real p, const Real t=0.0) const
 Gives the constant in an particular cell. More...
 
virtual F operator() (const Connector &cell, const Real2d &p, const Real t=0.0) const
 Gives the constant in an particular cell. More...
 
virtual F operator() (const Connector &cell, const Real3d &p, const Real t=0.0) const
 Gives the constant in an particular cell. More...
 
virtual Real operator() (const ElementWithCell< concepts::Realtype< Real >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Real operator() (const ElementWithCell< concepts::Realtype< Real >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Real operator() (const ElementWithCell< concepts::Realtype< Real >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Real operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 
virtual Real operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
virtual Real operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
 PiecewiseConstDynArrayFormula (const DynArray< F > &formula)
 
 ~PiecewiseConstDynArrayFormula ()
 

Protected Member Functions

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

Private Attributes

Real dflt_value_
 default value More...
 
const DynArray< F > * formula_
 

Detailed Description

template<typename F = Real>
class concepts::PiecewiseConstDynArrayFormula< F >

Piecewise constant function defined by attributes, base on dynamic array.

Author
Kersten Schmidt, 2005

Definition at line 183 of file formula.hh.

Member Typedef Documentation

◆ G

Definition at line 45 of file piecewiseFormula.hh.

◆ value_type

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ PiecewiseConstDynArrayFormula()

template<typename F = Real>
concepts::PiecewiseConstDynArrayFormula< F >::PiecewiseConstDynArrayFormula ( const DynArray< F > &  formula)

◆ ~PiecewiseConstDynArrayFormula()

Member Function Documentation

◆ clone() [1/2]

template<typename F = Real>
virtual PiecewiseConstDynArrayFormula<F>* concepts::PiecewiseConstDynArrayFormula< F >::clone ( ) const
virtual

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::Cloneable.

◆ clone() [2/2]

virtual PiecewiseFormulaBase<Real >* concepts::PiecewiseFormulaBase< Real >::clone
pure virtualinherited

Virtual constructor.

Returns a pointer to a copy of itself. The caller is responsible to destroy this copy.

Implements concepts::ElementFormula< Real, concepts::Realtype< Real >::type >.

Implemented in concepts::PiecewiseFormulaFun< Real, Real >, concepts::PiecewiseFormula< Real >, and concepts::PiecewiseConstFormula< Real >.

◆ dflt_value() [1/2]

virtual Real & concepts::PiecewiseFormulaBase< Real >::dflt_value
inlinevirtualinherited

Gives default value.

Definition at line 83 of file piecewiseFormula.hh.

◆ dflt_value() [2/2]

virtual const Real & concepts::PiecewiseFormulaBase< Real >::dflt_value
inlinevirtualinherited

Gives default value.

Definition at line 81 of file piecewiseFormula.hh.

◆ info()

template<typename F = Real>
virtual std::ostream& concepts::PiecewiseConstDynArrayFormula< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::PiecewiseFormulaBase< Real >.

◆ operator()() [1/9]

template<typename F = Real>
virtual F concepts::PiecewiseConstDynArrayFormula< F >::operator() ( const Connector cell,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtual

Gives the constant in an particular cell.

Implements concepts::PiecewiseFormulaBase< Real >.

Definition at line 189 of file formula.hh.

◆ operator()() [2/9]

template<typename F = Real>
virtual F concepts::PiecewiseConstDynArrayFormula< F >::operator() ( const Connector cell,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtual

Gives the constant in an particular cell.

Implements concepts::PiecewiseFormulaBase< Real >.

Definition at line 193 of file formula.hh.

◆ operator()() [3/9]

template<typename F = Real>
virtual F concepts::PiecewiseConstDynArrayFormula< F >::operator() ( const Connector cell,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtual

Gives the constant in an particular cell.

Implements concepts::PiecewiseFormulaBase< Real >.

Definition at line 197 of file formula.hh.

◆ operator()() [4/9]

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

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

◆ operator()() [5/9]

virtual Real concepts::ElementFormula< Real , concepts::Realtype< Real >::type >::operator() ( const ElementWithCell< concepts::Realtype< Real >::type > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

◆ operator()() [6/9]

virtual Real concepts::ElementFormula< Real , concepts::Realtype< Real >::type >::operator() ( const ElementWithCell< concepts::Realtype< Real >::type > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
pure virtualinherited

Evaluates the formula.

Parameters
elmElement
pPoint in space in local element coordinates
tPoint in time

◆ operator()() [7/9]

virtual Real concepts::PiecewiseFormulaBase< Real >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Definition at line 52 of file piecewiseFormula.hh.

◆ operator()() [8/9]

virtual Real concepts::PiecewiseFormulaBase< Real >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Definition at line 57 of file piecewiseFormula.hh.

◆ operator()() [9/9]

virtual Real concepts::PiecewiseFormulaBase< Real >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
inlinevirtualinherited

Definition at line 63 of file piecewiseFormula.hh.

Member Data Documentation

◆ dflt_value_

Real concepts::PiecewiseFormulaBase< Real >::dflt_value_
privateinherited

default value

Definition at line 88 of file piecewiseFormula.hh.

◆ formula_

template<typename F = Real>
const DynArray<F>* concepts::PiecewiseConstDynArrayFormula< F >::formula_
private

Definition at line 203 of file formula.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