#include <ConsumerID.h>
Public Member Functions | |
ConsumerID (unsigned int id=0) | |
bool | isValid () const |
bool | operator!= (ConsumerID other) const |
ConsumerID | operator++ (int) |
ConsumerID & | operator++ () |
bool | operator< (ConsumerID other) const |
bool | operator== (ConsumerID other) const |
Public Attributes | |
unsigned int | value |
Uniquely identifies a consumer.
Definition at line 23 of file ConsumerID.h.
stor::ConsumerID::ConsumerID | ( | unsigned int | id = 0 | ) | [inline, explicit] |
Definition at line 27 of file ConsumerID.h.
: value(id) { }
bool stor::ConsumerID::isValid | ( | void | ) | const [inline] |
Return whether or not *this is a valid ConsumerID.
Definition at line 34 of file ConsumerID.h.
References value.
Referenced by stor::QueueCollection< T >::createQueue(), stor::RegistrationInfoBase::isValid(), and stor::QueueCollection< T >::popEvent().
{ return value != 0; }
bool stor::ConsumerID::operator!= | ( | ConsumerID | other | ) | const [inline] |
operator!= is the negation of operator==.
Definition at line 50 of file ConsumerID.h.
References value.
{ return value != other.value; }
ConsumerID& stor::ConsumerID::operator++ | ( | void | ) | [inline] |
operator++() [preincrement] increments the given ConsumerID value, and returns the updated value.
Definition at line 56 of file ConsumerID.h.
References value.
{ ++value; return *this; }
ConsumerID stor::ConsumerID::operator++ | ( | int | ) | [inline] |
operator++(int) [postincrement] returns a copy of the current value of ConsumerID, and and increments *this.
Definition at line 62 of file ConsumerID.h.
References runTheMatrix::ret, and value.
{ConsumerID ret(*this); ++value; return ret;}
bool stor::ConsumerID::operator< | ( | ConsumerID | other | ) | const [inline] |
operator< induces a strict weak ordering, so that ConsumerID can be used as a key in std::map.
Definition at line 40 of file ConsumerID.h.
References value.
{ return value < other.value; }
bool stor::ConsumerID::operator== | ( | ConsumerID | other | ) | const [inline] |
operator== performs the expected equality test.
Definition at line 45 of file ConsumerID.h.
References value.
{ return value == other.value; }
unsigned int stor::ConsumerID::value |
Definition at line 25 of file ConsumerID.h.
Referenced by isValid(), operator!=(), operator++(), operator<(), and operator==().