ATLAS Offline Software
|
Identifiable container index to a contained object. More...
#include <IdentContIndex.h>
Public Member Functions | |
IdentContIndex () | |
Constructors. More... | |
IdentContIndex (unsigned short collHash, unsigned short objIndex) | |
IdentContIndex (unsigned int hashAndIndex) | |
unsigned short | collHash () const |
Accessor to hash, obj index and combined index. More... | |
unsigned short | objIndex () const |
object index in collection More... | |
unsigned int | hashAndIndex () const |
combined index More... | |
bool | isValid () const |
check that both fields are set More... | |
void | setHashAndIndex (unsigned int hashAndIndex) |
Setters of hash, obj index and combined index. More... | |
void | setCollHash (unsigned short hash) |
set object index in collection More... | |
void | setObjIndex (unsigned short index) |
set combined index More... | |
Private Attributes | |
unsigned short | m_collHash |
unsigned short | m_objIndex |
Identifiable container index to a contained object.
IdentContIndex is a helper class used in conjunction with IdentContIndexingPolicy to create a compound index to an object in an identifiable container. The index is composed of the hash id of the collection and the index of a object in the collection. An IdentContIndex provides an unsigned int compound, composed of two 16 bit hash id and collection index.
Definition at line 22 of file IdentContIndex.h.
|
inline |
Constructors.
Definition at line 63 of file IdentContIndex.h.
|
inline |
Definition at line 70 of file IdentContIndex.h.
|
inline |
Definition at line 77 of file IdentContIndex.h.
|
inline |
Accessor to hash, obj index and combined index.
collection hash id
Definition at line 85 of file IdentContIndex.h.
|
inline |
|
inline |
|
inline |
object index in collection
Definition at line 92 of file IdentContIndex.h.
|
inline |
set object index in collection
Definition at line 126 of file IdentContIndex.h.
|
inline |
Setters of hash, obj index and combined index.
set collection hash id
Definition at line 117 of file IdentContIndex.h.
|
inline |
set combined index
Definition at line 133 of file IdentContIndex.h.
|
private |
Definition at line 54 of file IdentContIndex.h.
|
private |
Definition at line 55 of file IdentContIndex.h.