dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR > Class Template Reference

BoundaryGridFunction implemented by a member function of some class. More...

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

Inheritance diagram for Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >:
Inheritance graph

Public Types

typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector< RF, dimR > > Traits
 export traits class More...
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView. More...
 

Public Member Functions

 TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor (const Class &obj_, Member member_, const GV &gv_)
 Construct an adaptor object. More...
 
template<typename Intersection >
void evaluate (const Intersection &is, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const GV & getGridView () const
 get reference to the internal gridview. More...
 
template<typename I >
void evaluate (const IntersectionGeometry< I > &ig, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position. More...
 

Detailed Description

template<class Member, class Class, class GV, class RF, std::size_t dimR = 1>
class Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >

BoundaryGridFunction implemented by a member function of some class.

   \tparam Member   Member function pointer type.
   \tparam Class    Type of the class containing the member.
   \tparam GV       The type of the GridView
   \tparam RF       The type of the range field
   \tparam dimRange The dimension of the Range.

   The member function must support the signature
   \code

(obj.*member)(const Intersection &is, const FieldVector<typename GV::ctype, GV::dimension-1> &xl) const; and return something convertible to FieldVector<RF, dimRange>.

Member Typedef Documentation

◆ GridViewType

template<class T , class Imp >
typedef T::GridViewType Dune::PDELab::BoundaryGridFunctionBase< T, Imp >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

template<class T , class Imp >
typedef GridFunctionTag Dune::PDELab::BoundaryGridFunctionBase< T, Imp >::ImplementationTag
inherited

◆ Traits

template<class Member , class Class , class GV , class RF , std::size_t dimR = 1>
typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector<RF, dimR> > Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >::Traits

export traits class

Constructor & Destructor Documentation

◆ TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor()

template<class Member , class Class , class GV , class RF , std::size_t dimR = 1>
Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor ( const Class &  obj_,
Member  member_,
const GV &  gv_ 
)
inline

Construct an adaptor object.

Parameters
obj_Class object to call the member function on.
member_Member function pointer to the member to use.
gv_The GridView to use.

This class store the obj_ and gv_ references internally and becomes invalid when they become invalid.

Member Function Documentation

◆ evaluate() [1/2]

template<class Member , class Class , class GV , class RF , std::size_t dimR = 1>
template<typename Intersection >
void Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >::evaluate ( const Intersection &  is,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline

◆ evaluate() [2/2]

template<class T , class Imp >
template<typename I >
void Dune::PDELab::BoundaryGridFunctionInterface< T, Imp >::evaluate ( const IntersectionGeometry< I > &  ig,
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]iggeometry of intersection with boundary
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

◆ getGridView()

template<class Member , class Class , class GV , class RF , std::size_t dimR = 1>
const GV & Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >::getGridView ( ) const
inline

get reference to the internal gridview.


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