#include <QueueID.h>
Public Types | |
typedef enquing_policy::PolicyTag | PolicyType |
Public Member Functions | |
size_t | index () const |
bool | isValid () const |
bool | operator!= (QueueID const &other) const |
bool | operator< (QueueID const &other) const |
bool | operator== (QueueID const &other) const |
PolicyType | policy () const |
QueueID () | |
QueueID (PolicyType policy, size_t index) | |
Private Attributes | |
size_t | index_ |
PolicyType | policy_ |
Uniquely identifies the consumer queues
|
inline |
A default-constructed QueueID is invalid; it can not be used to identify an actual queue.
Definition at line 83 of file QueueID.h.
|
inline |
|
inline |
Return the index for this queue.
Definition at line 103 of file QueueID.h.
References index_.
Referenced by stor::operator<<().
|
inline |
Test for validity of a QueueID. Invalid QueueIDs do not represent the identity of any actual queue.
Definition at line 110 of file QueueID.h.
References stor::enquing_policy::Max, and policy_.
|
inline |
operator!= is the negation of operator==.
Definition at line 133 of file QueueID.h.
References operator==().
|
inline |
|
inline |
operator== returns true if both the policies and indices are equal.
Definition at line 126 of file QueueID.h.
References index_, and policy_.
Referenced by operator!=().
|
inline |
Return the tag for the queing policy of *this.
Definition at line 96 of file QueueID.h.
References policy_.
Referenced by stor::operator<<().
|
private |
Definition at line 75 of file QueueID.h.
Referenced by index(), operator<(), and operator==().
|
private |
Definition at line 76 of file QueueID.h.
Referenced by isValid(), operator<(), operator==(), and policy().