dune-fem 2.8.0
Loading...
Searching...
No Matches
localkey.hh
Go to the documentation of this file.
1#ifndef DUNE_FEM_SPACE_DOFMAPPER_LOCALKEY_HH
2#define DUNE_FEM_SPACE_DOFMAPPER_LOCALKEY_HH
3
4#if HAVE_DUNE_LOCALFUNCTIONS
5#include <dune/localfunctions/common/localkey.hh>
6#endif // #if HAVE_DUNE_LOCALFUNCTIONS
7
8namespace Dune
9{
10
11 namespace Fem
12 {
13
14#if HAVE_DUNE_LOCALFUNCTIONS
15
16 using Dune::LocalKey;
17
18#else // #if HAVE_DUNE_LOCALFUNCTIONS
19
20 struct LocalKey
21 {
22 LocalKey ( unsigned int subEntity, unsigned int codim, unsigned int index )
23 : subEntity_( subEntity ), codim_( codim ), index_( index )
24 {}
25
26 unsigned int subEntity () const { return subEntity_; }
27 unsigned int codim () const { return codim_; }
28 unsigned int index () const { return index_; }
29
30 private:
31 unsigned int subEntity_, codim_, index_;
32 };
33
34#endif // #else // #if HAVE_DUNE_LOCALFUNCTIONS
35
36 } // namespace Fem
37
38} // namespace Dune
39
40#endif // #ifndef DUNE_FEM_SPACE_DOFMAPPER_LOCALKEY_HH
Definition: bindguard.hh:11
Definition: localkey.hh:21
unsigned int subEntity() const
Definition: localkey.hh:26
LocalKey(unsigned int subEntity, unsigned int codim, unsigned int index)
Definition: localkey.hh:22
unsigned int index() const
Definition: localkey.hh:28
unsigned int codim() const
Definition: localkey.hh:27