1 #ifndef DUNE_FEM_OPERATOR_MATRIX_FUNCTOR_HH 2 #define DUNE_FEM_OPERATOR_MATRIX_FUNCTOR_HH 16 template<
class Functor,
class Index >
19 constexpr
IndexFunctor ( Functor functor,
int localIndex, Index globalIndex )
20 : functor_( functor ),
21 localIndex_( localIndex ),
22 globalIndex_( globalIndex )
25 template<
class GlobalKey >
26 void operator() (
const int localKey,
const GlobalKey &globalKey )
28 functor_( std::make_pair( localIndex_, localKey ), std::make_pair( globalIndex_, globalKey ) );
41 template<
class Mapper,
class Entity,
class Functor >
44 PairFunctor (
const Mapper &mapper,
const Entity &entity, Functor functor )
45 : mapper_( mapper ), entity_( entity ), functor_(
std::
move( functor ) )
48 template<
class GlobalKey >
49 void operator() (
const int localKey,
const GlobalKey &globalKey )
55 const Mapper &mapper_;
56 const Entity &entity_;
64 template<
class Mapper,
class Entity,
class Functor >
74 #endif // #ifndef DUNE_FEM_OPERATOR_MATRIX_FUNCTOR_HH
void operator()(const int localKey, const GlobalKey &globalKey)
Definition: operator/matrix/functor.hh:26
Definition: operator/matrix/functor.hh:17
constexpr IndexFunctor(Functor functor, int localIndex, Index globalIndex)
Definition: operator/matrix/functor.hh:19
PairFunctor(const Mapper &mapper, const Entity &entity, Functor functor)
Definition: operator/matrix/functor.hh:44
Definition: coordinate.hh:4
Definition: operator/matrix/functor.hh:42
PairFunctor< Mapper, Entity, Functor > makePairFunctor(const Mapper &mapper, const Entity &entity, Functor functor)
Definition: operator/matrix/functor.hh:65
void move(ArrayInterface< T > &array, const unsigned int oldOffset, const unsigned int newOffset, const unsigned int length)
Definition: array_inline.hh:38