dune-pdelab 2.10-git
Loading...
Searching...
No Matches
Dune::PDELab::GridFunctionBaseAdapter< Imp > Class Template Reference

Turn an ordinary GridFunction into a GridFunctionTree leaf. More...

#include <dune/pdelab/common/function.hh>

Inheritance diagram for Dune::PDELab::GridFunctionBaseAdapter< Imp >:
Inheritance graph

Public Types

typedef T Traits
 Export type traits.
 
typedef LeafNodeTag NodeTag
 

Public Member Functions

 GridFunctionBaseAdapter (const Imp &imp_)
 construct a GridFunctionBaseAdapter
 
void evaluate (const typename Imp::Traits::ElementType &e, const typename Imp::Traits::DomainType &x, typename Imp::Traits::RangeType &y) const
 Evaluate the GridFunction at given position.
 
const Imp::Traits::GridViewType & getGridView () const
 get a reference to the GridView
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position.
 
Output::DataSetType dataSetType () const
 Return the data set type of this function.
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function.
 

Static Public Member Functions

static constexpr auto degree ()
 

Static Public Attributes

static const bool isLeaf
 
static const bool isPower
 
static const bool isComposite
 

Detailed Description

template<class Imp>
class Dune::PDELab::GridFunctionBaseAdapter< Imp >

Turn an ordinary GridFunction into a GridFunctionTree leaf.

Template Parameters
ImpClass implementing the function.

Member Typedef Documentation

◆ Traits

template<class T , class Imp >
typedef T Dune::PDELab::GridFunctionInterface< T, Imp >::Traits
inherited

Export type traits.

Constructor & Destructor Documentation

◆ GridFunctionBaseAdapter()

template<class Imp >
Dune::PDELab::GridFunctionBaseAdapter< Imp >::GridFunctionBaseAdapter ( const Imp &  imp_)
inline

construct a GridFunctionBaseAdapter

Parameters
imp_The underlying ordinary GridFunction. A reference to this Object is stored, so the object must be valid for as long as this GridFunctionBaseAdapter is used.

Member Function Documentation

◆ dataSetType()

Output::DataSetType Dune::PDELab::GridFunctionOutputParameters::dataSetType ( ) const
inlineinherited

Return the data set type of this function.

◆ evaluate() [1/2]

template<class Imp >
void Dune::PDELab::GridFunctionBaseAdapter< Imp >::evaluate ( const typename Imp::Traits::ElementType &  e,
const typename Imp::Traits::DomainType &  x,
typename Imp::Traits::RangeType &  y 
) const
inline

Evaluate the GridFunction at given position.

Evaluates components of the grid function at the given position and returns these values in a vector.

Parameters
[in]eThe entity to evaluate on
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

◆ evaluate() [2/2]

template<class T , class Imp >
void Dune::PDELab::GridFunctionInterface< T, Imp >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inlineinherited

Evaluate the GridFunction at given position.

Evaluates components of the grid function at the given position and returns these values in a vector.

Parameters
[in]eThe entity to evaluate on
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

◆ getGridView()

template<class Imp >
const Imp::Traits::GridViewType & Dune::PDELab::GridFunctionBaseAdapter< Imp >::getGridView ( ) const
inline

get a reference to the GridView

◆ setDataSetType()

void Dune::PDELab::GridFunctionOutputParameters::setDataSetType ( Output::DataSetType  dataSetType)
inlineinherited

Set the data set type of this function.


The documentation for this class was generated from the following file: