ATLAS Offline Software
|
#include <IdentifierHash.h>
Public Types | |
typedef unsigned int | value_type |
Public Member Functions | |
IdentifierHash ()=default | |
Default methods. More... | |
IdentifierHash (const IdentifierHash &other)=default | |
IdentifierHash (IdentifierHash &&other)=default | |
IdentifierHash & | operator= (const IdentifierHash &other)=default |
IdentifierHash & | operator= (IdentifierHash &&other)=default |
~IdentifierHash ()=default | |
IdentifierHash (value_type value) | |
Initialization with value. More... | |
operator unsigned int (void) const | |
Get the value. More... | |
unsigned int | value (void) const |
bool | is_valid () const |
Check if id is in a valid state. More... | |
IdentifierHash & | operator= (value_type value) |
Assignment operators. More... | |
IdentifierHash & | operator+= (unsigned int value) |
IdentifierHash & | operator-= (unsigned int value) |
Private Types | |
enum | max_value_type { max_value = 0xFFFFFFFF } |
Private Attributes | |
value_type | m_value = max_value |
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to look-up "Identifiable"s stored in a simple vector. It is intended to be a continuous hash, i.e. it runs from 0 to N-1, where there are N different possible values for an Identifier(32) within a specific context.
IdentifierHashes are created by default in an invalid state which can be checked with "is_valid" method. This allows some error checking.
Definition at line 37 of file IdentifierHash.h.
typedef unsigned int IdentifierHash::value_type |
|
private |
|
default |
|
default |
|
default |
|
default |
IdentifierHash::IdentifierHash | ( | value_type | value | ) |
Initialization with value.
IdentifierHash& IdentifierHash::operator+= | ( | unsigned int | value | ) |
IdentifierHash& IdentifierHash::operator-= | ( | unsigned int | value | ) |
|
default |
|
default |
IdentifierHash& IdentifierHash::operator= | ( | value_type | value | ) |
unsigned int IdentifierHash::value | ( | void | ) | const |
|
private |
Definition at line 98 of file IdentifierHash.h.