The Gaudi Framework
v30r3 (a5ef0a68)
|
Key traits class. More...
#include <GaudiKernel/KeyedTraits.h>
Public Types | |
typedef KEY | key_type |
Declaration of key-type. More... | |
typedef KeyedObject< key_type > | obj_type |
Declaration of keyed object type. More... | |
Static Public Member Functions | |
static key_type | makeKey (long k) |
Create key from its full integer representation. More... | |
static key_type | makeKey (int k) |
static long | identifier (const key_type &k) |
Full unhashed key identifier. More... | |
static long | hash (const key_type &key_value) |
Hash function for this key. More... | |
static void | setKey (obj_type *v, const key_type &k) |
Set object key when inserted into the container. More... | |
static bool | checkKey (obj_type *v, const key_type &k) |
Check the validity of the object's key. More... | |
static long | addRef (obj_type *v) |
Add reference counter to object when inserted into the container. More... | |
static long | release (obj_type *v) |
Release reference to object. More... | |
Key traits class.
Definition of the key traits class.
This is the default class for keys. This implementation works "as is" for integer, long etc. keys.
For all other types of keys, this class must be either partially or completely specialized.
Definition at line 38 of file KeyedTraits.h.
typedef KEY Containers::key_traits< KEY >::key_type |
Declaration of key-type.
Definition at line 73 of file KeyedTraits.h.
typedef KeyedObject<key_type> Containers::key_traits< KEY >::obj_type |
Declaration of keyed object type.
Definition at line 75 of file KeyedTraits.h.
|
inlinestatic |
Add reference counter to object when inserted into the container.
Definition at line 104 of file KeyedTraits.h.
|
inlinestatic |
Check the validity of the object's key.
Select if key-checks should be performed by switching on/off the macro CHECK_KEYED_CONTAINER.
Definition at line 95 of file KeyedTraits.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Create key from its full integer representation.
Not implementing on specialization may inhibit the creation of keys, i.e. then a key must be supplied at insertion time.
Definition at line 80 of file KeyedTraits.h.
|
inlinestatic |
Definition at line 81 of file KeyedTraits.h.
|
inlinestatic |
Release reference to object.
Definition at line 106 of file KeyedTraits.h.
|
inlinestatic |
Set object key when inserted into the container.
Definition at line 87 of file KeyedTraits.h.