dune-pdelab
2.5-dev
|
BoundaryGridFunction implemented by a member function of some class. More...
#include <dune/pdelab/function/memberadaptor.hh>
Public Types | |
typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector< RF, dimR > > | Traits |
export traits class More... | |
typedef GridFunctionTag | ImplementationTag |
typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector< RF, dimR > > ::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... | |
void | evaluate (const IntersectionGeometry< I > &ig, const typename Traits::DomainType &x, typename Traits::RangeType &y) const |
Evaluate the GridFunction at given position. More... | |
Related Functions | |
(Note that these are not member functions.) | |
template<class RF , std::size_t dimRange, class GV , class Class , class Member > | |
TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimRange > | make2ArgsMemberFunctionToBoundaryGridFunctionAdaptor (const Class &obj, Member member, const GV &gv) |
easy construction of a TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor More... | |
BoundaryGridFunction implemented by a member function of some class.
Member | Member function pointer type. |
Class | Type of the class containing the member. |
GV | The type of the GridView |
RF | The type of the range field |
dimRange | The dimension of the Range. |
The member function must support the signature
and return something convertible to FieldVector<RF
, dimRange>
.
|
inherited |
Type of the GridView.
|
inherited |
typedef BoundaryGridFunctionTraits< GV, RF, dimR, FieldVector<RF, dimR> > Dune::PDELab::TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor< Member, Class, GV, RF, dimR >::Traits |
export traits class
|
inline |
Construct an adaptor object.
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.
|
inline |
|
inlineinherited |
Evaluate the GridFunction at given position.
Evaluates components of the grid function at the given position and returns these values in a vector.
[in] | ig | geometry of intersection with boundary |
[in] | x | The position in entity-local coordinates |
[out] | y | The result of the evaluation |
|
inline |
get reference to the internal gridview.
|
related |
easy construction of a TwoArgsMemberFunctionToBoundaryGridFunctionAdaptor
The only required template parameters are RF
and dimRange
, all other template parameters can be deduced automatically.