![]() |
ATLAS Offline Software
|
Helper class implementation to instantiate the templated IdentifierHashTable class. More...
#include <MdtTubeInChamberIdFields.h>
Public Types | |
| enum | { kTubeField = 0, kLayerField = 1, kMultilayerField = 2 } |
| enum the identifier fiels More... | |
| typedef IdHashTableHelper< 3, MdtTubeId, MdtTubeHash > | BaseClass |
| define type BaseClasse More... | |
| enum | |
| N is the number of fields to use from the identifier. More... | |
| typedef MdtTubeId | IdentifierType |
| define type IdentifierType More... | |
| typedef MdtTubeHash | HashType |
| define type HashType More... | |
| typedef MdtTubeHash | ValueType |
| needed for MultiDimArray<> instantiation More... | |
Public Member Functions | |
| void | setAll (const MdtTubeId &id) |
| Set identifier and also the fields (using the internal helper). More... | |
| void | setAll (int fields[3]) |
| Set fields and also the identifier (using the internal helper) More... | |
| const IdentifierType & | getId () const |
| Get the identifier. More... | |
| void | setId (const IdentifierType &id) |
| Set (only) the identifier. More... | |
| int | operator[] (unsigned int fieldIndex) const |
| Return the value encoded in field. More... | |
| void | setField (int index, int value) |
| Set field at index to value. More... | |
| void | setFields (int fields[N]) |
| Set fields from array. More... | |
Static Public Member Functions | |
| static void | setDefaults (const IdentifierType &defId, const HashType &defHash) |
| Set the default (invalid) values for identifier and hash. More... | |
| static bool | isValid (const IdentifierType &) |
| static HashType | defaultHash () |
| Returns default (=invalid) hash. More... | |
| static IdentifierType | defaultIdentifier () |
| Return default (=invalid) identifier. More... | |
| static ValueType | defaultValue () |
| Return default hash. More... | |
Private Attributes | |
| IdentifierType | m_id |
| int | m_fields [N] |
Static Private Attributes | |
| static IdentifierType | s_defaultId |
| static HashType | s_defaultHash |
Helper class implementation to instantiate the templated IdentifierHashTable class.
The template parameter T is an external IdentifierHelper class to encode/decode the fields in the identifier.
Definition at line 28 of file MdtTubeInChamberIdFields.h.
| typedef IdHashTableHelper<3,MdtTubeId,MdtTubeHash> MdtTubeInChamberIdFields::BaseClass |
define type BaseClasse
Definition at line 38 of file MdtTubeInChamberIdFields.h.
|
inherited |
define type HashType
Definition at line 42 of file IdHashTableHelper.h.
|
inherited |
define type IdentifierType
Definition at line 40 of file IdHashTableHelper.h.
|
inherited |
needed for MultiDimArray<> instantiation
Definition at line 44 of file IdHashTableHelper.h.
|
inherited |
N is the number of fields to use from the identifier.
NMAX is just to make sure we get unsigned int type of enum.
Definition at line 38 of file IdHashTableHelper.h.
| anonymous enum |
enum the identifier fiels
| Enumerator | |
|---|---|
| kTubeField | |
| kLayerField | |
| kMultilayerField | |
Definition at line 40 of file MdtTubeInChamberIdFields.h.
|
inlinestaticinherited |
Returns default (=invalid) hash.
Definition at line 75 of file IdHashTableHelper.h.
|
inlinestaticinherited |
Return default (=invalid) identifier.
Definition at line 77 of file IdHashTableHelper.h.
|
inlinestaticinherited |
Return default hash.
Needed for class MultiDimArray.
Definition at line 79 of file IdHashTableHelper.h.
|
inlineinherited |
|
inlinestaticinherited |
Definition at line 73 of file IdHashTableHelper.h.
|
inlineinherited |
Return the value encoded in field.
No range check!
Definition at line 61 of file IdHashTableHelper.h.
|
inline |
Set identifier and also the fields (using the internal helper).
Definition at line 47 of file MdtTubeInChamberIdFields.h.
|
inline |
Set fields and also the identifier (using the internal helper)
Definition at line 41 of file MdtTubeInChamberIdFields.h.
|
inlinestaticinherited |
Set the default (invalid) values for identifier and hash.
Must be called (once per type T) if the default constructors of HashType or IdentifierType do not give a well defined (invalid!) value. This is typically the case for built-in types.
Definition at line 70 of file IdHashTableHelper.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set (only) the identifier.
Definition at line 59 of file IdHashTableHelper.h.
|
privateinherited |
Definition at line 85 of file IdHashTableHelper.h.
|
privateinherited |
Definition at line 84 of file IdHashTableHelper.h.
|
staticprivateinherited |
Definition at line 90 of file IdHashTableHelper.h.
|
staticprivateinherited |
Definition at line 89 of file IdHashTableHelper.h.
1.8.18