dune-localfunctions
2.2.1
|
Describe position of one degree of freedom. More...
#include <dune/localfunctions/common/localkey.hh>
Public Types | |
enum | { intersectionCodim =666 } |
Enumerate 'special values' for the codimension method. More... | |
Public Member Functions | |
LocalKey () | |
Standard constructor for uninitialized local index. More... | |
LocalKey (unsigned int s, unsigned int c, unsigned int i) | |
Initialize all components. More... | |
unsigned int | subEntity () const |
Return number of associated subentity. More... | |
unsigned int | codim () const |
Return codim of associated entity. More... | |
unsigned int | index () const |
Return offset within subentity. More... | |
void | index (unsigned int i) |
Set index component. More... | |
bool | operator< (const LocalKey &other) const |
Less-than operator so we can use this class as a key type in stl containers. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LocalKey &localKey) |
Write LocalKey object to output stream. More... | |
Describe position of one degree of freedom.
A LocalKey associates a degree of freedom with an index of a local basis function.
anonymous enum |
Enumerate 'special values' for the codimension method.
Enumerator | |
---|---|
intersectionCodim |
Codimension returned by LocalKey::codim() for degrees of freedom attached to an intersection. The standard interface of dune-localfunctions assumes that degrees of freedom are attached to subentities of an element. This subentities can be described by a codimension and a subentity number. However some elements, like the mimetic finite elements, attach their degrees of freedom to intersections. While intersections do have a codimension, namely 1, having the method codim() return 1 in this case would be ambiguous. Hence 'intersectionCodim' is returned instead. |
|
inline |
Standard constructor for uninitialized local index.
|
inline |
Initialize all components.
s | Local number of the associated subentity |
c | Codimension of the associated subentity |
i | Index in the set of all functions associated to this subentity |
|
inline |
Return codim of associated entity.
Referenced by Dune::PowerCoefficients::PowerCoefficients().
|
inline |
Return offset within subentity.
Referenced by Dune::PowerCoefficients::PowerCoefficients(), Dune::EquidistantPointSetImpl< GenericGeometry::Prism< BaseTopology >, F >::setup(), and Dune::EquidistantPointSetImpl< GenericGeometry::Pyramid< BaseTopology >, F >::setup().
|
inline |
Set index component.
|
inline |
Less-than operator so we can use this class as a key type in stl containers.
|
inline |
Return number of associated subentity.
Referenced by Dune::PowerCoefficients::PowerCoefficients(), Dune::EquidistantPointSetImpl< GenericGeometry::Prism< BaseTopology >, F >::setup(), and Dune::EquidistantPointSetImpl< GenericGeometry::Pyramid< BaseTopology >, F >::setup().
|
friend |
Write LocalKey object to output stream.