concepts::ElementFormulaContainer< F, G > Class Template Referenceabstract

#include <elementFormulaContainer.hh>

Inheritance diagram for concepts::ElementFormulaContainer< F, G >:
concepts::ElementFormula< F, typename Realtype< F >::type > concepts::Cloneable concepts::OutputOperator

Public Types

typedef F value_type
 

Public Member Functions

virtual ElementFormulaContainer< F, G > * clone () const
 Virtual copy constructor. More...
 
virtual ElementFormula< F, typename Realtype< F >::type > * clone () const=0
 Virtual copy constructor. More...
 
 ElementFormulaContainer ()
 Constructor with no argument. More...
 
 ElementFormulaContainer (const ElementFormula< F, G > &frm)
 Constructor for an element formula, takes a clone. More...
 
 ElementFormulaContainer (const ElementFormula< F, G > *frm)
 Constructor for a pointer to an element formula in dynamic memory which will be deleted by this class. More...
 
 ElementFormulaContainer (const ElementFormulaContainer< F, G > &frm)
 Copy constructor. More...
 
 ElementFormulaContainer (const F x)
 Special constructor for a constant. More...
 
 ElementFormulaContainer (const RCP< const ElementFormula< F, G > > frm)
 Constructor for an RCP to an element formula, replaces the own RCP. More...
 
bool empty () const
 Returns true if no formula is stored. More...
 
const ElementFormula< F, G > & frm () const
 
virtual F operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 Evaluates the formula. More...
 
virtual F operator() (const ElementWithCell< G > &elm, const Real1d &p, const Real t=0.0) const
 
virtual F operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
virtual F operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
virtual F operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual F operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual F operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual ~ElementFormulaContainer ()
 

Protected Member Functions

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

Private Attributes

RCP< const ElementFormula< F, G > > frm_
 Element formula is stored as a RCP. More...
 

Detailed Description

template<class F, typename G = typename Realtype<F>::type>
class concepts::ElementFormulaContainer< F, G >

Definition at line 22 of file elementFormulaContainer.hh.

Member Typedef Documentation

◆ value_type

typedef F concepts::ElementFormula< F, typename Realtype< F >::type >::value_type
inherited

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ ElementFormulaContainer() [1/6]

template<class F , typename G = typename Realtype<F>::type>
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer ( const F  x)

Special constructor for a constant.

So, a constant can simply given to functions where a ElementFormulaContainer<F,G> is expected.

See also
testsuite/testFormula.cc

◆ ElementFormulaContainer() [2/6]

template<class F , typename G = typename Realtype<F>::type>
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer ( )
inline

Constructor with no argument.

Definition at line 35 of file elementFormulaContainer.hh.

◆ ElementFormulaContainer() [3/6]

template<class F , typename G = typename Realtype<F>::type>
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer ( const ElementFormula< F, G > &  frm)

Constructor for an element formula, takes a clone.

◆ ElementFormulaContainer() [4/6]

template<class F , typename G = typename Realtype<F>::type>
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer ( const RCP< const ElementFormula< F, G > >  frm)

Constructor for an RCP to an element formula, replaces the own RCP.

◆ ElementFormulaContainer() [5/6]

template<class F , typename G = typename Realtype<F>::type>
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer ( const ElementFormula< F, G > *  frm)
explicit

Constructor for a pointer to an element formula in dynamic memory which will be deleted by this class.

◆ ElementFormulaContainer() [6/6]

template<class F , typename G = typename Realtype<F>::type>
concepts::ElementFormulaContainer< F, G >::ElementFormulaContainer ( const ElementFormulaContainer< F, G > &  frm)

Copy constructor.

◆ ~ElementFormulaContainer()

template<class F , typename G = typename Realtype<F>::type>
virtual concepts::ElementFormulaContainer< F, G >::~ElementFormulaContainer ( )
virtual

Member Function Documentation

◆ clone() [1/2]

template<class F , typename G = typename Realtype<F>::type>
virtual ElementFormulaContainer<F,G>* concepts::ElementFormulaContainer< F, G >::clone ( ) const
inlinevirtual

Virtual copy constructor.

Implements concepts::Cloneable.

Definition at line 65 of file elementFormulaContainer.hh.

◆ clone() [2/2]

virtual ElementFormula<F,typename Realtype< F >::type >* concepts::ElementFormula< F, typename Realtype< F >::type >::clone ( ) const
pure virtualinherited

◆ empty()

template<class F , typename G = typename Realtype<F>::type>
bool concepts::ElementFormulaContainer< F, G >::empty ( ) const
inline

Returns true if no formula is stored.

Definition at line 72 of file elementFormulaContainer.hh.

◆ frm()

template<class F , typename G = typename Realtype<F>::type>
const ElementFormula<F,G>& concepts::ElementFormulaContainer< F, G >::frm ( ) const
inline

Definition at line 69 of file elementFormulaContainer.hh.

◆ info()

template<class F , typename G = typename Realtype<F>::type>
virtual std::ostream& concepts::ElementFormulaContainer< F, G >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ operator()() [1/7]

template<class F , typename G = typename Realtype<F>::type>
virtual F concepts::ElementFormulaContainer< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
virtual

Evaluates the formula.

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

◆ operator()() [2/7]

template<class F , typename G = typename Realtype<F>::type>
virtual F concepts::ElementFormulaContainer< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real1d p,
const Real  t = 0.0 
) const
inlinevirtual

Definition at line 57 of file elementFormulaContainer.hh.

◆ operator()() [3/7]

template<class F , typename G = typename Realtype<F>::type>
virtual F concepts::ElementFormulaContainer< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [4/7]

template<class F , typename G = typename Realtype<F>::type>
virtual F concepts::ElementFormulaContainer< F, G >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
virtual

◆ operator()() [5/7]

virtual F concepts::ElementFormula< F, typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  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

Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.

◆ operator()() [6/7]

virtual F concepts::ElementFormula< F, typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  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

Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.

◆ operator()() [7/7]

virtual F concepts::ElementFormula< F, typename Realtype< F >::type >::operator() ( const ElementWithCell< G > &  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

Implemented in concepts::ElementFormulaContainer< F >, and concepts::ElementFormulaContainer< F, typename Realtype< F >::type >.

Member Data Documentation

◆ frm_

template<class F , typename G = typename Realtype<F>::type>
RCP<const ElementFormula<F,G> > concepts::ElementFormulaContainer< F, G >::frm_
private

Element formula is stored as a RCP.

Definition at line 79 of file elementFormulaContainer.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