DUNE PDELab (2.8)

Dune::PDELab::MemberFunctionToGridFunctionAdaptor< Member, Class, GV, RF, dimR > Class Template Reference

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

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

Public Types

typedef GridFunctionTraits< GV, RF, dimR, FieldVector< RF, dimR > > Traits
 export traits class
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
typedef LeafNodeTag NodeTag
 The type tag that describes a LeafNode.
 

Public Member Functions

 MemberFunctionToGridFunctionAdaptor (const Class &obj_, Member member_, const GV &gv_)
 Construct an adaptor object. More...
 
const GV & getGridView () const
 get reference to the internal gridview.
 
Output::DataSetType dataSetType () const
 Return the data set type of this function.
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function.
 

Static Public Attributes

static const bool isLeaf = true
 Mark this class as a leaf in a dune-typetree.
 
static const bool isPower = false
 Mark this class as a non power in the dune-typetree.
 
static const bool isComposite = false
 Mark this class as a non composite in the dune-typetree.
 
static const std::size_t CHILDREN = 0
 Leafs have no children.
 

Detailed Description

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

GridFunction 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)(typename GV::template Codim<0>::Entity &e, const FieldVector<typename GV::ctype, GV::dimension> &xl, FieldVector<RF, dimRange> &y) const;

Constructor & Destructor Documentation

◆ MemberFunctionToGridFunctionAdaptor()

template<class Member , class Class , class GV , class RF , std::size_t dimR = 1>
Dune::PDELab::MemberFunctionToGridFunctionAdaptor< Member, Class, GV, RF, dimR >::MemberFunctionToGridFunctionAdaptor ( 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.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)