
#include <ckarrayindex.h>


Public Member Functions | |
| CkArrayIndex () | |
| Default. | |
| CkArrayIndex (int idx) | |
| int * | data (void) |
| Return a pointer to the actual index data. | |
| const int * | data (void) const |
| Return a const pointer to the actual index data. | |
| int | getCombinedCount (void) const |
| Return the total number of elements (assuming a dense chare array). | |
| void | print () |
| Used for debug prints elsewhere. | |
| CmiBool | operator== (const CkArrayIndex &idx) const |
| Equality comparison. | |
| CkHashCode | hash (void) const |
| These routines allow CkArrayIndex to be used in a CkHashtableT. | |
| int | compare (const CkArrayIndex &idx) const |
| CmiObjId * | getProjectionID (int arrayID) |
Static Public Member Functions | |
| static CkHashCode | staticHash (const void *a, size_t) |
| static int | staticCompare (const void *a, const void *b, size_t) |
Protected Member Functions | |
| void | init (const short num, const short dims, const int x, const int y=0, const int z=0) |
| void | init (const short num, const short dims, const short u, const short v, const short w, const short x, const short y=0, const short z=0) |
Definition at line 65 of file ckarrayindex.h.
| CkArrayIndex::CkArrayIndex | ( | ) | [inline] |
Default.
Definition at line 69 of file ckarrayindex.h.
References CkArrayIndexBase::dimension, CkArrayIndexBase::index, and CkArrayIndexBase::nInts.
| CkArrayIndex::CkArrayIndex | ( | int | idx | ) | [inline] |
| int* CkArrayIndex::data | ( | void | ) | [inline] |
Return a pointer to the actual index data.
Definition at line 74 of file ckarrayindex.h.
References CkArrayIndexBase::index.
Referenced by CkMigratable::CkAddThreadListeners(), ArrayElement::ckDebugChareName(), CkLocMgr::deliver(), getCombinedCount(), arrInfo::getMap(), getNextPE(), getProjectionID(), hash(), CldMap::homePe(), idx2LDObjid(), idx2str(), ConfigurableRRMap::populateInitial(), BlockMap::populateInitial(), printIndex(), LV3D1_Map::procNum(), ReadFileMap::procNum(), FastArrayMap::procNum(), DefaultArrayMap::procNum(), RRMap::procNum(), short_envelope::pup(), and CkObjID::toString().
| const int* CkArrayIndex::data | ( | void | ) | const [inline] |
Return a const pointer to the actual index data.
Definition at line 76 of file ckarrayindex.h.
References CkArrayIndexBase::index.
| int CkArrayIndex::getCombinedCount | ( | void | ) | const [inline] |
Return the total number of elements (assuming a dense chare array).
Definition at line 79 of file ckarrayindex.h.
References data(), and CkArrayIndexBase::dimension.
Referenced by arrInfo::distrib(), arrInfo::getMap(), and ArrayElement::initBasics().
| void CkArrayIndex::print | ( | ) | [inline] |
Used for debug prints elsewhere.
Definition at line 88 of file ckarrayindex.h.
References CmiPrintf(), CkArrayIndexBase::index, and CkArrayIndexBase::nInts.
Referenced by _distributedLocationHandler(), ElementDistributor::addLocation(), CkMemCheckPT::createEntry(), CkMemCheckPT::isMaster(), pupArrayElementsSkip(), and updateHomePE().
| CmiBool CkArrayIndex::operator== | ( | const CkArrayIndex & | idx | ) | const [inline] |
Equality comparison.
Definition at line 91 of file ckarrayindex.h.
References CmiFalse, CmiTrue, CkArrayIndexBase::index, and CkArrayIndexBase::nInts.
| CkHashCode CkArrayIndex::hash | ( | void | ) | const [inline] |
These routines allow CkArrayIndex to be used in a CkHashtableT.
Definition at line 100 of file ckarrayindex.h.
References circleShift(), data(), and CkArrayIndexBase::nInts.
Referenced by arrInfo::getMap(), getNextPE(), CldMap::homePe(), CkObjID::operator CkHashCode(), LV3D1_Map::procNum(), and RRMap::procNum().
| static CkHashCode CkArrayIndex::staticHash | ( | const void * | a, | |
| size_t | ||||
| ) | [inline, static] |
Definition at line 110 of file ckarrayindex.h.
| int CkArrayIndex::compare | ( | const CkArrayIndex & | idx | ) | const [inline] |
| static int CkArrayIndex::staticCompare | ( | const void * | a, | |
| const void * | b, | |||
| size_t | ||||
| ) | [inline, static] |
Definition at line 114 of file ckarrayindex.h.
Definition at line 122 of file ckarrayindex.h.
References circleShift(), data(), _CmiObjId::id, and CkArrayIndexBase::nInts.
Referenced by CkLocRec_local::invokeEntry().
| void CkArrayIndex::init | ( | const short | num, | |
| const short | dims, | |||
| const int | x, | |||
| const int | y = 0, |
|||
| const int | z = 0 | |||
| ) | [inline, protected] |
Definition at line 149 of file ckarrayindex.h.
References CkArrayIndexBase::dimension, CkArrayIndexBase::index, and CkArrayIndexBase::nInts.
Referenced by CkArrayIndex(), CkArrayIndex1D::CkArrayIndex1D(), CkArrayIndex2D::CkArrayIndex2D(), CkArrayIndex3D::CkArrayIndex3D(), CkArrayIndex4D::CkArrayIndex4D(), CkArrayIndex5D::CkArrayIndex5D(), and CkArrayIndex6D::CkArrayIndex6D().
| void CkArrayIndex::init | ( | const short | num, | |
| const short | dims, | |||
| const short | u, | |||
| const short | v, | |||
| const short | w, | |||
| const short | x, | |||
| const short | y = 0, |
|||
| const short | z = 0 | |||
| ) | [inline, protected] |
Definition at line 160 of file ckarrayindex.h.
References CkArrayIndexBase::dimension, CkArrayIndexBase::indexShorts, and CkArrayIndexBase::nInts.
1.5.5