#include <register.h>
Public Member Functions | |
CkRegisteredInfo () | |
Subtle: we *don't* want to call vec's constructor, because the order in which constructors for global variables get called is undefined. | |
~CkRegisteredInfo () | |
int | add (T *t) |
Add a heap-allocated registration record, returning the index used. | |
size_t | size (void) |
T * | operator[] (size_t idx) |
Return the registered data at this index. | |
Private Member Functions | |
void | outOfBounds (int idx) |
Private Attributes | |
CkVec< T * > | vec |
Definition at line 293 of file register.h.
CkRegisteredInfo< T >::CkRegisteredInfo | ( | ) | [inline] |
Subtle: we *don't* want to call vec's constructor, because the order in which constructors for global variables get called is undefined.
Hence we rely on the implicit zero-initialization that all globals get.
Definition at line 312 of file register.h.
CkRegisteredInfo< T >::~CkRegisteredInfo | ( | ) | [inline] |
Definition at line 313 of file register.h.
References CkVec< T >::size(), and CkRegisteredInfo< T >::vec.
void CkRegisteredInfo< T >::outOfBounds | ( | int | idx | ) | [inline, private] |
Definition at line 296 of file register.h.
References name, CkVec< T >::size(), and CkRegisteredInfo< T >::vec.
Referenced by CkRegisteredInfo< T >::operator[]().
int CkRegisteredInfo< T >::add | ( | T * | t | ) | [inline] |
Add a heap-allocated registration record, returning the index used.
Definition at line 319 of file register.h.
References BGConverse::CkMyRank(), CkVec< T >::push_back(), CkVec< T >::size(), PUP::t, and CkRegisteredInfo< T >::vec.
Referenced by CkRegisterChare(), CkRegisterEpInternal(), CkRegisterMainChare(), CkRegisterMsg(), CkRegisterReadonly(), and CkRegisterReadonlyMsg().
size_t CkRegisteredInfo< T >::size | ( | void | ) | [inline] |
Definition at line 329 of file register.h.
References CkVec< T >::size(), and CkRegisteredInfo< T >::vec.
Referenced by CkGetChareIdx(), CkPrintChareName(), and CkPrintEntryMethod().
T* CkRegisteredInfo< T >::operator[] | ( | size_t | idx | ) | [inline] |
Return the registered data at this index.
Definition at line 332 of file register.h.
References CkRegisteredInfo< T >::outOfBounds(), CkVec< T >::size(), and CkRegisteredInfo< T >::vec.
CkVec<T *> CkRegisteredInfo< T >::vec [private] |
Definition at line 294 of file register.h.
Referenced by CkRegisteredInfo< T >::add(), CkRegisteredInfo< T >::operator[](), CkRegisteredInfo< T >::outOfBounds(), CkRegisteredInfo< T >::size(), and CkRegisteredInfo< T >::~CkRegisteredInfo().