concepts::ConstFormula< F > Class Template Referenceabstract

Class for a constant formula. More...

#include <constFormula.hh>

Inheritance diagram for concepts::ConstFormula< F >:
concepts::Formula< Real >

Public Types

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

Public Member Functions

virtual ConstFormula< F > * clone () const
 
virtual Formulaclone () const=0
 
 ConstFormula (const F a=F(1.0))
 
virtual F operator() (const Real p, const Real t=0.0) const
 Application operator. More...
 
virtual F operator() (const Real2d &p, const Real t=0.0) const
 Application operator. More...
 
virtual F operator() (const Real3d &p, const Real t=0.0) const
 Application operator. More...
 
ConstFormula< F > & operator= (const F a)
 
virtual ~ConstFormula ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 

Private Attributes

a_
 

Detailed Description

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

Class for a constant formula.

Author
Kersten Schmidt, 2010
Examples
BGT_0.cc.

Definition at line 26 of file constFormula.hh.

Member Typedef Documentation

◆ G

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

Definition at line 37 of file formula.hh.

◆ value_type

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

Definition at line 36 of file formula.hh.

Constructor & Destructor Documentation

◆ ConstFormula()

template<typename F = Real>
concepts::ConstFormula< F >::ConstFormula ( const F  a = F(1.0))
inline

Definition at line 28 of file constFormula.hh.

◆ ~ConstFormula()

template<typename F = Real>
virtual concepts::ConstFormula< F >::~ConstFormula ( )
inlinevirtual

Definition at line 40 of file constFormula.hh.

Member Function Documentation

◆ clone() [1/2]

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

Definition at line 43 of file constFormula.hh.

◆ clone() [2/2]

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

◆ info()

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

Definition at line 51 of file constFormula.hh.

◆ 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]

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

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Implements concepts::Formula< Real >.

Definition at line 31 of file constFormula.hh.

◆ operator()() [5/6]

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

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Implements concepts::Formula< Real >.

Definition at line 34 of file constFormula.hh.

◆ operator()() [6/6]

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

Application operator.

Evaluates the formula.

Parameters
pPoint in space
tPoint in time

Implements concepts::Formula< Real >.

Definition at line 37 of file constFormula.hh.

◆ operator=()

template<typename F = Real>
ConstFormula<F>& concepts::ConstFormula< F >::operator= ( const F  a)
inline

Definition at line 46 of file constFormula.hh.

Member Data Documentation

◆ a_

template<typename F = Real>
F concepts::ConstFormula< F >::a_
private

Definition at line 55 of file constFormula.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