dune-pdelab  2.5-dev
Public Member Functions | List of all members
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 Member Functions

 GridFunctionBaseAdapter (const Imp &imp_)
 construct a GridFunctionBaseAdapter More...
 
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. More...
 
const Imp::Traits::GridViewType & getGridView () const
 get a reference to the GridView More...
 
Output::DataSetType dataSetType () const
 Return the data set type of this function. More...
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function. More...
 

Detailed Description

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

Turn an ordinary GridFunction into a GridFunctionTree leaf.

Template Parameters
ImpClass implementing the function.

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()

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

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