dune-pdelab  2.0.0
Public Types | Public Member Functions | List of all members
Dune::PDELab::FunctionToGridFunctionAdapter< G, T > Class Template Reference

make a GridFunction from a Function More...

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

Inheritance diagram for Dune::PDELab::FunctionToGridFunctionAdapter< G, T >:
Inheritance graph

Public Types

typedef GridFunctionTraits< G,
typename
T::Traits::RangeFieldType,
T::Traits::dimRange, typename
T::Traits::RangeType > 
Traits
 

Public Member Functions

 dune_static_assert ((is_same< typename T::Traits::DomainFieldType, typename Traits::DomainFieldType >::value),"GridView's and wrapped Functions DomainFieldType don't match")
 
 dune_static_assert (T::Traits::dimDomain==Traits::dimDomain,"GridView's and wrapped Functions dimDomain don't match")
 
 dune_static_assert ((is_same< typename T::Traits::DomainType, typename Traits::DomainType >::value),"GridView's and wrapped Functions DomainType don't match")
 
 FunctionToGridFunctionAdapter (const G &g_, const T &t_)
 Create a FunctionToGridFunctionAdapter. More...
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewTypegetGridView () const
 
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 G, typename T>
class Dune::PDELab::FunctionToGridFunctionAdapter< G, T >

make a GridFunction from a Function

Template Parameters
GThe GridView type
TThe function type

Member Typedef Documentation

template<typename G , typename T >
typedef GridFunctionTraits<G, typename T::Traits::RangeFieldType, T::Traits::dimRange, typename T::Traits::RangeType> Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::Traits

Constructor & Destructor Documentation

template<typename G , typename T >
Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::FunctionToGridFunctionAdapter ( const G &  g_,
const T &  t_ 
)
inline

Create a FunctionToGridFunctionAdapter.

Parameters
g_The GridView
t_The function

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 G , typename T >
Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::dune_static_assert ( (is_same< typename T::Traits::DomainFieldType, typename Traits::DomainFieldType >::value ,
"GridView's and wrapped Functions DomainFieldType don't match"   
)
template<typename G , typename T >
Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::dune_static_assert ( T::Traits::dimDomain  = =Traits::dimDomain,
"GridView's and wrapped Functions dimDomain don't match"   
)
template<typename G , typename T >
Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::dune_static_assert ( (is_same< typename T::Traits::DomainType, typename Traits::DomainType >::value ,
"GridView's and wrapped Functions DomainType don't match"   
)
template<typename G , typename T >
void Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline
template<typename G , typename T >
const Traits::GridViewType& Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::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().


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