Dune Core Modules (2.9.1)
Dune::ParallelIndexSet< TG, TL, N > Class Template Reference
Manager class for the mapping between local indices and globally unique indices. More...
#include <dune/common/parallel/indexset.hh>
Classes | |
class | iterator |
The iterator over the pairs. More... | |
Public Types | |
typedef TG | GlobalIndex |
the type of the global index. This type has to provide at least a operator< for sorting. | |
typedef TL | LocalIndex |
The type of the local index, e.g. ParallelLocalIndex. More... | |
typedef Dune::IndexPair< GlobalIndex, LocalIndex > | IndexPair |
The type of the pair stored. | |
typedef ArrayList< IndexPair, N >::const_iterator | const_iterator |
The constant iterator over the pairs. | |
Public Member Functions | |
ParallelIndexSet () | |
Constructor. | |
const ParallelIndexSetState & | state () |
Get the state the index set is in. More... | |
void | beginResize () |
Indicate that the index set is to be resized. More... | |
void | add (const GlobalIndex &global) |
Add an new index to the set. More... | |
void | add (const GlobalIndex &global, const LocalIndex &local) |
Add an new index to the set. More... | |
void | markAsDeleted (const iterator &position) |
Mark an index as deleted. More... | |
void | endResize () |
Indicate that the resizing finishes. More... | |
IndexPair & | operator[] (const GlobalIndex &global) |
Find the index pair with a specific global id. More... | |
IndexPair & | at (const GlobalIndex &global) |
Find the index pair with a specific global id. More... | |
bool | exists (const GlobalIndex &global) const |
Find the index pair with a specific global id. More... | |
const IndexPair & | operator[] (const GlobalIndex &global) const |
Find the index pair with a specific global id. More... | |
const IndexPair & | at (const GlobalIndex &global) const |
Find the index pair with a specific global id. More... | |
iterator | begin () |
Get an iterator over the indices positioned at the first index. More... | |
iterator | end () |
Get an iterator over the indices positioned after the last index. More... | |
const_iterator | begin () const |
Get an iterator over the indices positioned at the first index. More... | |
const_iterator | end () const |
Get an iterator over the indices positioned after the last index. More... | |
void | renumberLocal () |
Renumbers the local index numbers. More... | |
int | seqNo () const |
Get the internal sequence number. More... | |
size_t | size () const |
Get the total number (public and nonpublic) indices. More... | |
Static Public Attributes | |
static constexpr int | arraySize = (N>0) ? N : 1 |
The size of the individual arrays in the underlying ArrayList. More... | |
Detailed Description
template<typename TG, typename TL, int N = 100>
class Dune::ParallelIndexSet< TG, TL, N >
class Dune::ParallelIndexSet< TG, TL, N >
Manager class for the mapping between local indices and globally unique indices.
The mapping is between a globally unique id and local index. The local index is consecutive and non persistent while the global id might not be consecutive but definitely is persistent.
The documentation for this class was generated from the following file:
- dune/common/parallel/indexset.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)