Cheap generic unique keyword identifier class. More...
#include <AtomicId.h>
Public Member Functions | |
AtomicId () throw () | |
AtomicId (const AtomicId &orig) throw () | |
AtomicId (const char *arg) throw () | |
constructs an AtomicId from a C string More... | |
AtomicId (const std::string &arg) throw () | |
constructs an AtomicId from a STL string More... | |
operator bool () const throw () | |
null value check operator More... | |
operator const char * () const throw () | |
implicit cast to a C string More... | |
operator std::string () const throw () | |
implicit cast to a STL string More... | |
bool | operator!= (const AtomicId &second) const throw () |
bool | operator< (const AtomicId &second) const throw () |
bool | operator<= (const AtomicId &second) const throw () |
AtomicId & | operator= (const AtomicId &orig) throw () |
bool | operator== (const AtomicId &second) const throw () |
bool | operator> (const AtomicId &second) const throw () |
bool | operator>= (const AtomicId &second) const throw () |
~AtomicId () throw () | |
Static Private Member Functions | |
static AtomicId | build (const char *arg) throw () |
static const char * | lookup (const char *arg) throw () |
Private Attributes | |
const char * | string |
Cheap generic unique keyword identifier class.
AtomicId is a lightweight class intended to be used for key values e.g. in STL maps. An atomic identifier can be transparently constructed from and converted back to a string, but an instance of AtomicId does not occupy and additional memory and the comparator operators are very cheap. An AtomicId instance requires the size of a pointer and is therefore suited for direct inlining.
Definition at line 31 of file AtomicId.h.
|
inline |
Definition at line 33 of file AtomicId.h.
|
inline |
Definition at line 34 of file AtomicId.h.
|
inline |
|
inline |
|
inline |
Definition at line 39 of file AtomicId.h.
|
inlinestaticprivate |
|
staticprivate |
|
inline |
null value check operator
Definition at line 50 of file AtomicId.h.
|
inline |
|
inline |
implicit cast to a STL string
Definition at line 53 of file AtomicId.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
|
inline |
|
inline |
Definition at line 41 of file AtomicId.h.
References string.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 70 of file AtomicId.h.
Referenced by build(), operator const char *(), and operator=().