dune-pdelab  2.4-dev
Public Types | Public Member Functions | List of all members
Dune::PDELab::SqrGridFunctionAdapter< GF > Class Template Reference

Take square of a GridFunction. More...

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

Inheritance diagram for Dune::PDELab::SqrGridFunctionAdapter< GF >:
Inheritance graph

Public Types

typedef Base::Traits Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > >::GridViewType GridViewType
 Type of the GridView. More...
 

Public Member Functions

 SqrGridFunctionAdapter (GF &gf_)
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewType & getGridView () const
 
template<typename Time >
void setTime (Time time)
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position. 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<typename GF>
class Dune::PDELab::SqrGridFunctionAdapter< GF >

Take square of a GridFunction.

Template Parameters
GFThe type of the GridFunction to square

Member Typedef Documentation

typedef GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > ::GridViewType Dune::PDELab::GridFunctionBase< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::GridViewType
inherited

Type of the GridView.

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::ImplementationTag
inherited
template<typename GF >
typedef Base::Traits Dune::PDELab::SqrGridFunctionAdapter< GF >::Traits

Constructor & Destructor Documentation

template<typename GF >
Dune::PDELab::SqrGridFunctionAdapter< GF >::SqrGridFunctionAdapter ( GF &  gf_)
inline

Member Function Documentation

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

Return the data set type of this function.

Referenced by Dune::PDELab::GridFunctionOutputParameters::setDataSetType().

template<typename GF >
void Dune::PDELab::SqrGridFunctionAdapter< GF >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inline
void Dune::PDELab::GridFunctionInterface< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::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
template<typename GF >
const Traits::GridViewType& Dune::PDELab::SqrGridFunctionAdapter< GF >::getGridView ( ) const
inline
void Dune::PDELab::GridFunctionOutputParameters::setDataSetType ( Output::DataSetType  dataSetType)
inlineinherited

Set the data set type of this function.

References Dune::PDELab::GridFunctionOutputParameters::dataSetType().

template<typename GF >
template<typename Time >
void Dune::PDELab::SqrGridFunctionAdapter< GF >::setTime ( Time  time)
inline

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