concepts::VectorElementFormulaBase< F, dim, G > Class Template Referenceabstract

Element formula returning a vector. More...

#include <vectorElementFormula.hh>

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

Public Types

typedef Point< F, dim > value_type
 

Public Member Functions

virtual VectorElementFormulaBase< F, dim, G > * clone () const
 Virtual copy constructor. More...
 
virtual ElementFormula< Point< F, dim >, typename Realtype< F >::type > * clone () const=0
 Virtual copy constructor. More...
 
const std::vector< ElementFormulaContainer< F, G > > & getFormulas ()
 
Point< F, dim > operator() (const ElementWithCell< G > &elm, const Real p, const Real t=0.0) const
 Evaluates the formula. More...
 
Point< F, dim > operator() (const ElementWithCell< G > &elm, const Real2d &p, const Real t=0.0) const
 
Point< F, dim > operator() (const ElementWithCell< G > &elm, const Real3d &p, const Real t=0.0) const
 
virtual Point< F, dim > operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Point< F, dim > operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real2d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
virtual Point< F, dim > operator() (const ElementWithCell< typename Realtype< F >::type > &elm, const Real3d &p, const Real t=0.0) const=0
 Evaluates the formula. More...
 
ElementFormulaContainer< F, G > & operator[] (int i)
 
 VectorElementFormulaBase ()
 
 VectorElementFormulaBase (const std::vector< ElementFormulaContainer< F, G > > &formulas)
 Combines a vector of dim ElementFormulas to a VectorElementFormulaBase. More...
 
virtual ~VectorElementFormulaBase ()
 

Protected Member Functions

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

Protected Attributes

std::vector< ElementFormulaContainer< F, G > > formulas_
 

Detailed Description

template<typename F, int dim, typename G = typename Realtype<F>::type>
class concepts::VectorElementFormulaBase< F, dim, G >

Element formula returning a vector.

Author
Kersten Schmidt, 2010

Definition at line 26 of file vectorElementFormula.hh.

Member Typedef Documentation

◆ value_type

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

Definition at line 37 of file elementFormula.hh.

Constructor & Destructor Documentation

◆ VectorElementFormulaBase() [1/2]

template<typename F , int dim, typename G = typename Realtype<F>::type>
concepts::VectorElementFormulaBase< F, dim, G >::VectorElementFormulaBase ( )
inline

Definition at line 1 of file vectorElementFormula.hh.

◆ VectorElementFormulaBase() [2/2]

template<typename F , int dim, typename G = typename Realtype<F>::type>
concepts::VectorElementFormulaBase< F, dim, G >::VectorElementFormulaBase ( const std::vector< ElementFormulaContainer< F, G > > &  formulas)
inline

Combines a vector of dim ElementFormulas to a VectorElementFormulaBase.

Each ElementFormula is given as a ElementFormulaContainer

Definition at line 1 of file vectorElementFormula.hh.

◆ ~VectorElementFormulaBase()

template<typename F , int dim, typename G = typename Realtype<F>::type>
virtual concepts::VectorElementFormulaBase< F, dim, G >::~VectorElementFormulaBase ( )
inlinevirtual

Definition at line 92 of file vectorElementFormula.hh.

Member Function Documentation

◆ clone() [1/2]

template<typename F , int dim, typename G = typename Realtype<F>::type>
virtual VectorElementFormulaBase<F,dim,G>* concepts::VectorElementFormulaBase< F, dim, G >::clone ( ) const
inlinevirtual

Virtual copy constructor.

Implements concepts::Cloneable.

Definition at line 81 of file vectorElementFormula.hh.

◆ clone() [2/2]

virtual ElementFormula<Point< F, dim > ,typename Realtype< F >::type >* concepts::ElementFormula< Point< F, dim > , typename Realtype< F >::type >::clone
pure virtualinherited

◆ getFormulas()

template<typename F , int dim, typename G = typename Realtype<F>::type>
const std::vector<ElementFormulaContainer<F, G> >& concepts::VectorElementFormulaBase< F, dim, G >::getFormulas ( )
inline

Definition at line 94 of file vectorElementFormula.hh.

◆ info()

template<typename F , int dim, typename G = typename Realtype<F>::type>
virtual std::ostream& concepts::VectorElementFormulaBase< F, dim, G >::info ( std::ostream &  os) const
inlineprotectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 109 of file vectorElementFormula.hh.

◆ operator()() [1/6]

template<typename F , int dim, typename G = typename Realtype<F>::type>
Point<F, dim> concepts::VectorElementFormulaBase< F, dim, G >::operator() ( const ElementWithCell< G > &  elm,
const Real  p,
const Real  t = 0.0 
) const
inline

Evaluates the formula.

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

Definition at line 51 of file vectorElementFormula.hh.

◆ operator()() [2/6]

template<typename F , int dim, typename G = typename Realtype<F>::type>
Point<F, dim> concepts::VectorElementFormulaBase< F, dim, G >::operator() ( const ElementWithCell< G > &  elm,
const Real2d p,
const Real  t = 0.0 
) const
inline

Definition at line 60 of file vectorElementFormula.hh.

◆ operator()() [3/6]

template<typename F , int dim, typename G = typename Realtype<F>::type>
Point<F, dim> concepts::VectorElementFormulaBase< F, dim, G >::operator() ( const ElementWithCell< G > &  elm,
const Real3d p,
const Real  t = 0.0 
) const
inline

Definition at line 70 of file vectorElementFormula.hh.

◆ operator()() [4/6]

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

Implemented in concepts::VectorElementFormulaBase< F, dim, typename Realtype< F >::type >.

◆ operator()() [5/6]

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

Implemented in concepts::VectorElementFormulaBase< F, dim, typename Realtype< F >::type >.

◆ operator()() [6/6]

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

Implemented in concepts::VectorElementFormulaBase< F, dim, typename Realtype< F >::type >.

◆ operator[]()

template<typename F , int dim, typename G = typename Realtype<F>::type>
ElementFormulaContainer<F, G>& concepts::VectorElementFormulaBase< F, dim, G >::operator[] ( int  i)
inline

Definition at line 99 of file vectorElementFormula.hh.

Member Data Documentation

◆ formulas_

template<typename F , int dim, typename G = typename Realtype<F>::type>
std::vector<ElementFormulaContainer<F, G> > concepts::VectorElementFormulaBase< F, dim, G >::formulas_
protected

Definition at line 107 of file vectorElementFormula.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