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_ |
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 26 of file PlayaGeneralizedIndex.hpp.
Playa::GeneralizedIndex::GeneralizedIndex | ( | ) | [inline] |
Definition at line 30 of file PlayaGeneralizedIndex.hpp.
const std::deque<int>& Playa::GeneralizedIndex::blockIndex | ( | ) | const [inline] |
int Playa::GeneralizedIndex::depth | ( | ) | const [inline] |
void Playa::GeneralizedIndex::popBlockIndex | ( | ) | [inline] |
void Playa::GeneralizedIndex::pushBlockIndex | ( | int | b | ) | [inline] |
int Playa::GeneralizedIndex::readBlockIndex | ( | ) | const [inline] |
int Playa::GeneralizedIndex::readLocalIndex | ( | ) | const [inline] |
void Playa::GeneralizedIndex::setLocalIndex | ( | int | i | ) | [inline] |
std::deque<int> Playa::GeneralizedIndex::blockIndex_ [private] |
Definition at line 55 of file PlayaGeneralizedIndex.hpp.
Referenced by blockIndex(), depth(), popBlockIndex(), pushBlockIndex(), and readBlockIndex().
int Playa::GeneralizedIndex::localIndex_ [private] |
Definition at line 56 of file PlayaGeneralizedIndex.hpp.
Referenced by readLocalIndex(), and setLocalIndex().