3#include <amdis/functions/LocalView.hpp>
8 template <
class RB,
class CB>
17 : rowLocalView_(rowBasis)
18 , colLocalView_(colBasis)
22 template <
class Element>
23 void bind (Element
const& element)
25 rowLocalView_.bind(element);
26 colLocalView_.bind(element);
32 rowLocalView_.unbind();
33 colLocalView_.unbind();
36 RowLocalView
const& row()
const
41 ColLocalView
const& col()
const
47 RowLocalView rowLocalView_;
48 ColLocalView colLocalView_;
60 : same_(&rowBasis == &colBasis)
61 , rowLocalView_(rowBasis)
63 ? Dune::stackobject_to_shared_ptr(rowLocalView_)
74 template <
class Element>
75 void bind (Element
const& element)
77 rowLocalView_.bind(element);
79 colLocalView_->bind(element);
85 rowLocalView_.unbind();
87 colLocalView_->unbind();
97 return *colLocalView_;
103 std::shared_ptr<LocalView> colLocalView_;
void bind(Element const &element)
Bind the views to a grid element.
Definition: LocalViewPair.hpp:75
LocalViewPair(B const &rowBasis, B const &colBasis)
Construct local view for a given global finite element basis.
Definition: LocalViewPair.hpp:59
void unbind()
Unbind from the current element.
Definition: LocalViewPair.hpp:83
The restriction of a finite element basis to a single element.
Definition: LocalViewPair.hpp:10
LocalViewPair(RB const &rowBasis, CB const &colBasis)
Construct local view for a given global finite element basis.
Definition: LocalViewPair.hpp:16
void bind(Element const &element)
Bind the views to a grid element.
Definition: LocalViewPair.hpp:23
void unbind()
Unbind from the current element.
Definition: LocalViewPair.hpp:30
constexpr bool LocalView
A Dune::Functions::LocalView type.
Definition: Concepts.hpp:181