![]() |
ATLAS Offline Software
|
A packed version of ElementLink.
More...
#include <PackedLinkImpl.h>
Public Member Functions | |
| PackedLinkBase () | |
| Default constructor. | |
| PackedLinkBase (unsigned int collection, unsigned int index) | |
| Constructor. | |
| bool | operator== (const PackedLinkBase &other) const |
| Comparison. | |
| unsigned int | collection () const |
| Unpack the collection index from the link. | |
| unsigned int | index () const |
| Unpack the element index from the link. | |
| void | setCollection (unsigned int collection) |
| Set the collection index;. | |
| void | setIndex (unsigned int index) |
| Set the element index;. | |
Static Public Attributes | |
| static constexpr unsigned | NBITS = 32 |
| static constexpr unsigned | COLLECTION_NBITS = 8 |
| static constexpr unsigned | INDEX_NBITS = NBITS - COLLECTION_NBITS |
| static constexpr uint32_t | COLLECTION_MAX = CxxUtils::ones<uint32_t> (COLLECTION_NBITS) |
| static constexpr uint32_t | INDEX_MAX = CxxUtils::ones<uint32_t> (INDEX_NBITS) |
Private Attributes | |
| uint32_t | m_packed |
| The packed form of the link. | |
A packed version of ElementLink.
This represents a link to an element of STORABLE, packed into 32 bits.
Definition at line 119 of file PackedLinkImpl.h.
|
inherited |
Unpack the collection index from the link.
|
inherited |
Unpack the element index from the link.
|
inherited |
Comparison.
| other | The link with which to compare. |
| SG::PackedLinkBase::PackedLinkBase | ( | ) |
Default constructor.
Initialize a null link.
| SG::PackedLinkBase::PackedLinkBase | ( | unsigned int | collection, |
| unsigned int | index ) |
Constructor.
| collection | The index of the collection in the DataLink vector, |
| index | The index of the element within the collection. |
|
inherited |
|
inherited |
Set the element index;.
| index | The index of the element within the collection. |
|
staticconstexprinherited |
Definition at line 51 of file PackedLinkImpl.h.
|
staticconstexprinherited |
Definition at line 49 of file PackedLinkImpl.h.
|
staticconstexprinherited |
Definition at line 52 of file PackedLinkImpl.h.
|
staticconstexprinherited |
Definition at line 50 of file PackedLinkImpl.h.
|
privateinherited |
The packed form of the link.
Definition at line 105 of file PackedLinkImpl.h.
|
staticconstexprinherited |
Definition at line 48 of file PackedLinkImpl.h.