Helper class for conversion from/to int stored in TE and pair of ints used in Navigation Object pointer in Navigation is pair of ints. One is pointing so collection of givent type. Second int points to object in this sub collection. In TE fro historical reason (and space saving) this 2 ints need to colapse into one 32bit int. More...
#include <TriggerElement.h>
Public Member Functions | |
ObjectIndex (sub_index_type subType, index_type begin, index_type end) | |
constructor used to create index used in TE | |
sub_index_type | subTypeIndex () const |
to get collection index | |
index_type | objectsBegin () const |
to get object number in th ecollection | |
index_type | objectsEnd () const |
to get object number in th ecollection | |
bool | isSameOrWithin (const ObjectIndex *idx) const |
check if idx is the same as this or is within this index | |
void | updateBeginAndEnd (index_type begin, index_type end) |
bool | operator< (const ObjectIndex &obj) const |
void | serialize (std::vector< uint32_t > &output) const |
void | deserialize (std::vector< uint32_t >::const_iterator &inputIt) |
void | setSubTypeIndex (sub_index_type idx) |
bool | valid () const |
bool | operator== (const ObjectIndex &rhs) const |
bool | operator!= (const ObjectIndex &rhs) const |
Helper class for conversion from/to int stored in TE and pair of ints used in Navigation Object pointer in Navigation is pair of ints. One is pointing so collection of givent type. Second int points to object in this sub collection. In TE fro historical reason (and space saving) this 2 ints need to colapse into one 32bit int.