#include <ConnectionID.h>
Public Member Functions | |
ConnectionID (unsigned int id=0) | |
bool | isValid () const |
bool | operator!= (ConnectionID other) const |
ConnectionID | operator++ (int) |
ConnectionID & | operator++ () |
bool | operator< (ConnectionID other) const |
bool | operator== (ConnectionID other) const |
Public Attributes | |
unsigned int | value |
Uniquely identifies an event server connection.
Definition at line 20 of file ConnectionID.h.
smproxy::ConnectionID::ConnectionID | ( | unsigned int | id = 0 | ) | [inline, explicit] |
Definition at line 24 of file ConnectionID.h.
: value(id) { }
bool smproxy::ConnectionID::isValid | ( | void | ) | const [inline] |
Return whether or not *this is a valid ConnectionID.
Definition at line 30 of file ConnectionID.h.
References value.
{ return value != 0; }
bool smproxy::ConnectionID::operator!= | ( | ConnectionID | other | ) | const [inline] |
operator!= is the negation of operator==.
Definition at line 46 of file ConnectionID.h.
References value.
{ return value != other.value; }
ConnectionID& smproxy::ConnectionID::operator++ | ( | void | ) | [inline] |
operator++() [preincrement] increments the given ConnectionID value, and returns the updated value.
Definition at line 52 of file ConnectionID.h.
References value.
{ ++value; return *this; }
ConnectionID smproxy::ConnectionID::operator++ | ( | int | ) | [inline] |
operator++(int) [postincrement] returns a copy of the current value of ConnectionID, and and increments *this.
Definition at line 58 of file ConnectionID.h.
References run_regression::ret, and value.
{ConnectionID ret(*this); ++value; return ret;}
bool smproxy::ConnectionID::operator< | ( | ConnectionID | other | ) | const [inline] |
operator< induces a strict weak ordering, so that ConnectionID can be used as a key in std::map.
Definition at line 36 of file ConnectionID.h.
References value.
{ return value < other.value; }
bool smproxy::ConnectionID::operator== | ( | ConnectionID | other | ) | const [inline] |
operator== performs the expected equality test.
Definition at line 41 of file ConnectionID.h.
References value.
{ return value == other.value; }
unsigned int smproxy::ConnectionID::value |
Definition at line 22 of file ConnectionID.h.
Referenced by isValid(), operator!=(), operator++(), operator<(), and operator==().