5#ifndef DUNE_LOCALKEY_HH
6#define DUNE_LOCALKEY_HH
50 constexpr LocalKey (
unsigned int s,
unsigned int c,
unsigned int i) noexcept
63 constexpr unsigned int codim () const noexcept
70 constexpr unsigned int index () const noexcept
76 constexpr void index (
unsigned int i)
noexcept
85 return values_ < other.values_;
91 return s <<
"[ subEntity: " << localKey.
subEntity()
92 <<
", codim: " << localKey.
codim()
93 <<
", index: " << localKey.
index() <<
" ]";
99 std::array<unsigned int,3> values_;
Definition bdfmcube.hh:18
Describe position of one degree of freedom.
Definition localkey.hh:24
bool operator<(const LocalKey &other) const noexcept
Less-than operator so we can use this class as a key type in stl containers.
Definition localkey.hh:83
constexpr void index(unsigned int i) noexcept
Set index component.
Definition localkey.hh:76
constexpr unsigned int index() const noexcept
Return offset within subentity.
Definition localkey.hh:70
constexpr LocalKey(unsigned int s, unsigned int c, unsigned int i) noexcept
Initialize all components.
Definition localkey.hh:50
@ intersectionCodim
Codimension returned by LocalKey::codim() for degrees of freedom attached to an intersection.
Definition localkey.hh:37
constexpr unsigned int codim() const noexcept
Return codim of associated entity.
Definition localkey.hh:63
friend std::ostream & operator<<(std::ostream &s, const LocalKey &localKey)
Write LocalKey object to output stream.
Definition localkey.hh:89
constexpr LocalKey() noexcept
Standard constructor for uninitialized local index.
Definition localkey.hh:41
constexpr unsigned int subEntity() const noexcept
Return number of associated subentity.
Definition localkey.hh:56