concepts::VectorFormula< F, dim > Class Template Referenceabstract

Element formula returning a vector. More...

#include <vectorFormula.hh>

Inheritance diagram for concepts::VectorFormula< F, dim >:
concepts::Formula< Point< F, dim > >

Public Types

typedef RCP< const concepts::Formula< F > > EntryFormulaRCP
 
typedef Realtype< Point< F, dim > >::type G
 
typedef Point< F, dim > value_type
 

Public Member Functions

virtual VectorFormula< F, dim > * clone () const
 Virtual copy constructor. More...
 
virtual Formulaclone () const=0
 
const std::vector< EntryFormulaRCP > & getFormulas ()
 
Point< F, dim > operator() (const Real p, const Real t=0.0) const
 Evaluates the formula. More...
 
Point< F, dim > operator() (const Real2d &p, const Real t=0.0) const
 Application operator. More...
 
Point< F, dim > operator() (const Real3d &p, const Real t=0.0) const
 Application operator. More...
 
EntryFormulaRCPoperator[] (int i)
 
 VectorFormula ()
 
 VectorFormula (const std::vector< EntryFormulaRCP > &formulas)
 Combines a vector of dim Formulas to a VectorFormula. More...
 
virtual ~VectorFormula ()
 
virtual Point< F, dim > operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Point< F, dim > operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Point< F, dim > operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Point< F, dim > operator() (const Connector &cntr, const Real p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Point< F, dim > operator() (const Connector &cntr, const Real2d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 
virtual Point< F, dim > operator() (const Connector &cntr, const Real3d &p, const Real t=0.0) const
 Convenience implementation, that by default ignores its elm param. More...
 

Protected Member Functions

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

Protected Attributes

std::vector< EntryFormulaRCPformulas_
 

Detailed Description

template<typename F, int dim>
class concepts::VectorFormula< F, dim >

Element formula returning a vector.

Author
Kersten Schmidt, 2010

Definition at line 25 of file vectorFormula.hh.

Member Typedef Documentation

◆ EntryFormulaRCP

template<typename F , int dim>
typedef RCP<const concepts::Formula<F> > concepts::VectorFormula< F, dim >::EntryFormulaRCP

Definition at line 29 of file vectorFormula.hh.

◆ G

typedef Realtype<Point< F, dim > >::type concepts::Formula< Point< F, dim > >::G
inherited

Definition at line 37 of file formula.hh.

◆ value_type

template<typename F , int dim>
typedef Point<F, dim> concepts::VectorFormula< F, dim >::value_type

Definition at line 28 of file vectorFormula.hh.

Constructor & Destructor Documentation

◆ VectorFormula() [1/2]

template<typename F , int dim>
concepts::VectorFormula< F, dim >::VectorFormula ( )
inline

Definition at line 29 of file vectorFormula.hh.

◆ VectorFormula() [2/2]

template<typename F , int dim>
concepts::VectorFormula< F, dim >::VectorFormula ( const std::vector< EntryFormulaRCP > &  formulas)
inline

Combines a vector of dim Formulas to a VectorFormula.

Each Formula is given as a refence counting pointer (see RCP).

Definition at line 29 of file vectorFormula.hh.

◆ ~VectorFormula()

template<typename F , int dim>
virtual concepts::VectorFormula< F, dim >::~VectorFormula ( )
inlinevirtual

Definition at line 90 of file vectorFormula.hh.

Member Function Documentation

◆ clone() [1/2]

template<typename F , int dim>
virtual VectorFormula<F,dim>* concepts::VectorFormula< F, dim >::clone ( ) const
inlinevirtual

Virtual copy constructor.

Definition at line 79 of file vectorFormula.hh.

◆ clone() [2/2]

virtual Formula* concepts::Formula< Point< F, dim > >::clone
pure virtualinherited

◆ getFormulas()

template<typename F , int dim>
const std::vector< EntryFormulaRCP >& concepts::VectorFormula< F, dim >::getFormulas ( )
inline

Definition at line 92 of file vectorFormula.hh.

◆ info()

template<typename F , int dim>
virtual std::ostream& concepts::VectorFormula< F, dim >::info ( std::ostream &  os) const
inlineprotectedvirtual

Definition at line 107 of file vectorFormula.hh.

◆ operator()() [1/6]

virtual Point< F, dim > concepts::Formula< Point< F, dim > >::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 Point< F, dim > concepts::Formula< Point< F, dim > >::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 Point< F, dim > concepts::Formula< Point< F, dim > >::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 , int dim>
Point<F, dim> concepts::VectorFormula< F, dim >::operator() ( const Real  p,
const Real  t = 0.0 
) const
inlinevirtual

Evaluates the formula.

Parameters
pPoint in space in physical coordinates
tPoint in time

Implements concepts::Formula< Point< F, dim > >.

Definition at line 51 of file vectorFormula.hh.

◆ operator()() [5/6]

template<typename F , int dim>
Point<F, dim> concepts::VectorFormula< F, dim >::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< Point< F, dim > >.

Definition at line 60 of file vectorFormula.hh.

◆ operator()() [6/6]

template<typename F , int dim>
Point<F, dim> concepts::VectorFormula< F, dim >::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< Point< F, dim > >.

Definition at line 69 of file vectorFormula.hh.

◆ operator[]()

template<typename F , int dim>
EntryFormulaRCP& concepts::VectorFormula< F, dim >::operator[] ( int  i)
inline

Definition at line 97 of file vectorFormula.hh.

Member Data Documentation

◆ formulas_

template<typename F , int dim>
std::vector< EntryFormulaRCP > concepts::VectorFormula< F, dim >::formulas_
protected

Definition at line 105 of file vectorFormula.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