PPL Logo

ck::ObjID Class Reference

The basic element identifier. More...

#include <objid.h>

Collaboration diagram for ck::ObjID:

Collaboration graph
[legend]

Public Types

enum  bits { ELEMENT_BITS = CMK_OBJID_ELEMENT_BITS, COLLECTION_BITS = CMK_OBJID_COLLECTION_BITS, TYPE_TAG_BITS = CMK_OBJID_TYPE_TAG_BITS }
enum  masks { ELEMENT_MASK = ((1ULL << ELEMENT_BITS) - 1), COLLECTION_MASK = (((1ULL << COLLECTION_BITS) - 1) << ELEMENT_BITS), TYPE_TAG_MASK = (((1ULL << TYPE_TAG_BITS) - 1) << (ELEMENT_BITS + COLLECTION_BITS)) }

Public Member Functions

 ObjID ()
 ObjID (const CmiUInt8 id_)
 ObjID (const CkGroupID gid, const CmiUInt8 eid)
CkGroupID getCollectionID () const
CmiUInt8 getElementID () const
 get element id
CmiUInt8 getID () const

Private Attributes

CmiUInt8 id
 The actual id data.

Detailed Description

The basic element identifier.

Definition at line 31 of file objid.h.


Member Enumeration Documentation

Enumerator:
ELEMENT_BITS 
COLLECTION_BITS 
TYPE_TAG_BITS 

Definition at line 70 of file objid.h.

Enumerator:
ELEMENT_MASK 
COLLECTION_MASK 
TYPE_TAG_MASK 

Definition at line 75 of file objid.h.


Constructor & Destructor Documentation

ck::ObjID::ObjID (  )  [inline]

Note:
: may have to befriend the ArrayMgr

Definition at line 34 of file objid.h.

ck::ObjID::ObjID ( const CmiUInt8  id_  )  [inline]

Definition at line 36 of file objid.h.

ck::ObjID::ObjID ( const CkGroupID  gid,
const CmiUInt8  eid 
) [inline]

Definition at line 37 of file objid.h.

References CmiAbort(), CmiPrintf(), COLLECTION_BITS, COLLECTION_MASK, ELEMENT_BITS, ELEMENT_MASK, and _ckGroupID::idx.

Here is the call graph for this function:


Member Function Documentation

CkGroupID ck::ObjID::getCollectionID (  )  const [inline]

Definition at line 61 of file objid.h.

References COLLECTION_MASK, ELEMENT_BITS, and _ckGroupID::idx.

CmiUInt8 ck::ObjID::getElementID (  )  const [inline]

get element id

Definition at line 67 of file objid.h.

References ELEMENT_MASK.

CmiUInt8 ck::ObjID::getID (  )  const [inline]

Definition at line 68 of file objid.h.

References COLLECTION_MASK, and ELEMENT_MASK.

Referenced by ArrayElement::initBasics(), ck::operator==(), and envelope::setRecipientID().

Here is the caller graph for this function:


Field Documentation

The actual id data.

Definition at line 84 of file objid.h.


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:33:35 2020 for Charm++ by  doxygen 1.5.5