|
dune-common
2.2.0
|
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 | |||
| enum | { arraySize = (N>0)?N:1 } | ||
| 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. | |||
| 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. | |||
| void | beginResize () throw (InvalidIndexSetState) | ||
Indicate that the index set is to be resized.
| |||
| void | add (const GlobalIndex &global) throw (InvalidIndexSetState) | ||
| Add an new index to the set. | |||
| void | add (const GlobalIndex &global, const LocalIndex &local) throw (InvalidIndexSetState) | ||
| Add an new index to the set. | |||
| void | markAsDeleted (const iterator &position) throw (InvalidIndexSetState) | ||
| Mark an index as deleted. | |||
| void | endResize () throw (InvalidIndexSetState) | ||
| Indicate that the resizing finishes. | |||
| IndexPair & | operator[] (const GlobalIndex &global) | ||
| Find the index pair with a specific global id. | |||
| IndexPair & | at (const GlobalIndex &global) | ||
| Find the index pair with a specific global id. | |||
| const IndexPair & | operator[] (const GlobalIndex &global) const | ||
| Find the index pair with a specific global id. | |||
| const IndexPair & | at (const GlobalIndex &global) const | ||
| Find the index pair with a specific global id. | |||
| iterator | begin () | ||
| Get an iterator over the indices positioned at the first index. | |||
| iterator | end () | ||
| Get an iterator over the indices positioned after the last index. | |||
| const_iterator | begin () const | ||
| Get an iterator over the indices positioned at the first index. | |||
| const_iterator | end () const | ||
| Get an iterator over the indices positioned after the last index. | |||
| void | renumberLocal () | ||
| Renumbers the local index numbers. | |||
| int | seqNo () const | ||
| Get the internal sequence number. | |||
| size_t | size () const | ||
| Get the total number (public and nonpublic) indices. | |||
Friends | |||
| class | GlobalLookupIndexSet< 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.
1.7.6.1