![]() |
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 | |
| enum | |
| N is the number of fields to use from the identifier. More... | |
| typedef MdtTubeId | IdentifierType |
| define type IdentifierType | |
| typedef MdtTubeHash | HashType |
| define type HashType | |
| typedef MdtTubeHash | ValueType |
| needed for MultiDimArray<> instantiation | |
Public Member Functions | |
| void | setAll (const MdtTubeId &id) |
| Set identifier and also the fields (using the internal helper). | |
| void | setAll (int fields[3]) |
| Set fields and also the identifier (using the internal helper) | |
| const IdentifierType & | getId () const |
| Get the identifier. | |
| void | setId (const IdentifierType &id) |
| Set (only) the identifier. | |
| int | operator[] (unsigned int fieldIndex) const |
| Return the value encoded in field. | |
| void | setField (int index, int value) |
| Set field at index to value. | |
| void | setFields (int fields[N]) |
| Set fields from array. | |
Static Public Member Functions | |
| static void | setDefaults (const IdentifierType &defId, const HashType &defHash) |
| Set the default (invalid) values for identifier and hash. | |
| static bool | isValid (const IdentifierType &) |
| static HashType | defaultHash () |
| Returns default (=invalid) hash. | |
| static IdentifierType | defaultIdentifier () |
| Return default (=invalid) identifier. | |
| static ValueType | defaultValue () |
| Return default hash. | |
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 31 of file MdtTubeInChamberIdFields.h.
|
inherited |
define type HashType
Definition at line 35 of file IdHashTableHelper.h.
|
inherited |
define type IdentifierType
Definition at line 33 of file IdHashTableHelper.h.
|
inherited |
needed for MultiDimArray<> instantiation
Definition at line 37 of file IdHashTableHelper.h.
| anonymous enum |
enum the identifier fiels
| Enumerator | |
|---|---|
| kTubeField | |
| kLayerField | |
| kMultilayerField | |
Definition at line 33 of file MdtTubeInChamberIdFields.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 31 of file IdHashTableHelper.h.
|
staticinherited |
Returns default (=invalid) hash.
|
staticinherited |
Return default (=invalid) identifier.
|
staticinherited |
Return default hash.
Needed for class MultiDimArray.
|
inherited |
Get the identifier.
|
staticinherited |
|
inherited |
Return the value encoded in field.
No range check!
|
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.
|
staticinherited |
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.
|
inherited |
Set field at index to value.
No range check!
|
inherited |
Set fields from array.
|
inherited |
Set (only) the identifier.
|
privateinherited |
Definition at line 78 of file IdHashTableHelper.h.
|
privateinherited |
Definition at line 77 of file IdHashTableHelper.h.
|
staticprivateinherited |
Definition at line 83 of file IdHashTableHelper.h.
|
staticprivateinherited |
Definition at line 82 of file IdHashTableHelper.h.