Public Member Functions | |
| GeneralizedIndex () | |
| void | pushBlockIndex (int b) |
| void | popBlockIndex () |
| int | readBlockIndex () const |
| void | setLocalIndex (int i) |
| int | readLocalIndex () const |
| int | depth () const |
| const std::deque< int > & | blockIndex () const |
Private Attributes | |
| std::deque< int > | blockIndex_ |
| int | localIndex_ |
GeneralizedIndex is a locator for an element in vector with arbitrary block structure. Together with the processor's rank it can uniquely specify an element in a distributed vector. This object is used in operations such as minloc and maxloc on arbitrarily-structured vectors.
The implementation is a simple pair of (1) a deque giving the sequence of block indices and (2) an integer giving the local offset within the lowest-level block. The integer index is local, i.e., relative to the block pointed to by the block index.
Definition at line 63 of file PlayaGeneralizedIndex.hpp.
| Playa::GeneralizedIndex::GeneralizedIndex | ( | ) | [inline] |
Definition at line 67 of file PlayaGeneralizedIndex.hpp.
| const std::deque<int>& Playa::GeneralizedIndex::blockIndex | ( | ) | const [inline] |
Definition at line 88 of file PlayaGeneralizedIndex.hpp.
References blockIndex_.
| int Playa::GeneralizedIndex::depth | ( | ) | const [inline] |
Definition at line 85 of file PlayaGeneralizedIndex.hpp.
References blockIndex_.
| void Playa::GeneralizedIndex::popBlockIndex | ( | ) | [inline] |
Definition at line 73 of file PlayaGeneralizedIndex.hpp.
References blockIndex_.
| void Playa::GeneralizedIndex::pushBlockIndex | ( | int | b | ) | [inline] |
Definition at line 70 of file PlayaGeneralizedIndex.hpp.
References blockIndex_.
| int Playa::GeneralizedIndex::readBlockIndex | ( | ) | const [inline] |
Definition at line 76 of file PlayaGeneralizedIndex.hpp.
References blockIndex_.
| int Playa::GeneralizedIndex::readLocalIndex | ( | ) | const [inline] |
Definition at line 82 of file PlayaGeneralizedIndex.hpp.
References localIndex_.
| void Playa::GeneralizedIndex::setLocalIndex | ( | int | i | ) | [inline] |
Definition at line 79 of file PlayaGeneralizedIndex.hpp.
References localIndex_.
std::deque<int> Playa::GeneralizedIndex::blockIndex_ [private] |
Definition at line 92 of file PlayaGeneralizedIndex.hpp.
Referenced by blockIndex(), depth(), popBlockIndex(), pushBlockIndex(), and readBlockIndex().
int Playa::GeneralizedIndex::localIndex_ [private] |
Definition at line 93 of file PlayaGeneralizedIndex.hpp.
Referenced by readLocalIndex(), and setLocalIndex().