CMS 3D CMS Logo

Public Member Functions | Public Attributes

stor::ConsumerID Struct Reference

#include <ConsumerID.h>

List of all members.

Public Member Functions

 ConsumerID (unsigned int id=0)
bool isValid () const
bool operator!= (ConsumerID other) const
ConsumerID operator++ (int)
ConsumerIDoperator++ ()
bool operator< (ConsumerID other) const
bool operator== (ConsumerID other) const

Public Attributes

unsigned int value

Detailed Description

Uniquely identifies a consumer.

Author:
mommsen
Revision:
1.4
Date:
2011/03/07 15:31:31

Definition at line 23 of file ConsumerID.h.


Constructor & Destructor Documentation

stor::ConsumerID::ConsumerID ( unsigned int  id = 0) [inline, explicit]

Definition at line 27 of file ConsumerID.h.

: value(id) { }

Member Function Documentation

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; }

Member Data Documentation

Definition at line 25 of file ConsumerID.h.

Referenced by isValid(), operator!=(), operator++(), operator<(), and operator==().