Dune Core Modules (2.7.1)
hierarchy.hh
Go to the documentation of this file.
Portable very large unsigned integers.
Iterator over the levels in the hierarchy.
Definition: hierarchy.hh:119
LevelIterator(const LevelIterator< typename std::remove_const< C >::type, typename std::remove_const< T1 >::type > &other)
Copy constructor.
Definition: hierarchy.hh:135
T1 & dereference() const
Dereference the iterator.
Definition: hierarchy.hh:165
bool equals(const LevelIterator< typename std::remove_const< C >::type, typename std::remove_const< T1 >::type > &other) const
Equality check.
Definition: hierarchy.hh:149
bool isRedistributed() const
Check whether there was a redistribution at the current level.
Definition: hierarchy.hh:186
bool equals(const LevelIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T1 >::type > &other) const
Equality check.
Definition: hierarchy.hh:158
void increment()
Move to the next coarser level.
Definition: hierarchy.hh:171
LevelIterator(const LevelIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T1 >::type > &other)
Copy constructor.
Definition: hierarchy.hh:141
void decrement()
Move to the next fine level.
Definition: hierarchy.hh:177
T1 & getRedistributed() const
Get the redistributed container.
Definition: hierarchy.hh:195
LevelIterator()
Constructor.
Definition: hierarchy.hh:127
T MemberType
The type of the container we store.
Definition: hierarchy.hh:44
LevelIterator< Hierarchy< T, A >, T > Iterator
Type of the mutable iterator.
Definition: hierarchy.hh:215
LevelIterator< const Hierarchy< T, A >, const T > ConstIterator
Type of the const iterator.
Definition: hierarchy.hh:218
typename std::allocator_traits< A >::template rebind_alloc< Element > Allocator
The allocator to use for the list elements.
Definition: hierarchy.hh:75
Facade class for stl conformant bidirectional iterators.
Definition: iteratorfacades.hh:272
Helper classes for the construction of classes without empty constructor.
Hierarchy(const Hierarchy &other)
Copy constructor (deep copy!).
Definition: hierarchy.hh:281
std::size_t levels() const
Get the number of levels in the hierarchy.
Definition: hierarchy.hh:321
ConstIterator coarsest() const
Get an iterator positioned at the coarsest level.
Definition: hierarchy.hh:394
void addCoarser(Arguments &args)
Add an element on a coarser level.
Definition: hierarchy.hh:333
void addFiner(Arguments &args)
Add an element on a finer level.
Definition: hierarchy.hh:355
Hierarchy(const std::shared_ptr< MemberType > &first)
Construct a new hierarchy.
Definition: hierarchy.hh:269
const void * Arguments
A type holding all the arguments needed to call the constructor.
Definition: construction.hh:44
static std::shared_ptr< T > construct(Arguments &args)
Construct an object with the specified arguments.
Definition: construction.hh:52
Iterator coarsest()
Get an iterator positioned at the coarsest level.
Definition: hierarchy.hh:382
ConstIterator finest() const
Get an iterator positioned at the finest level.
Definition: hierarchy.hh:388
Iterator finest()
Get an iterator positioned at the finest level.
Definition: hierarchy.hh:376
STL namespace.
Standard Dune debug streams.
A simple timing class.
Definition of the DUNE_UNUSED macro for the case that config.h is not available.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 13, 23:29, 2024)