CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
stor::ConsumerID Struct Reference

#include <ConsumerID.h>

Public Member Functions

 ConsumerID (unsigned int id=0)
 
bool isValid () const
 
bool operator!= (ConsumerID other) const
 
ConsumerIDoperator++ ()
 
ConsumerID operator++ (int)
 
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)
inlineexplicit

Definition at line 27 of file ConsumerID.h.

27 : value(id) { }
unsigned int value
Definition: ConsumerID.h:25

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().

34 { return value != 0; }
unsigned int value
Definition: ConsumerID.h:25
bool stor::ConsumerID::operator!= ( ConsumerID  other) const
inline

operator!= is the negation of operator==.

Definition at line 50 of file ConsumerID.h.

References value.

50 { return value != other.value; }
unsigned int value
Definition: ConsumerID.h:25
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.

56 { ++value; return *this; }
unsigned int value
Definition: ConsumerID.h:25
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 run_regression::ret, and value.

62 {ConsumerID ret(*this); ++value; return ret;}
unsigned int value
Definition: ConsumerID.h:25
ConsumerID(unsigned int id=0)
Definition: ConsumerID.h:27
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.

40 { return value < other.value; }
unsigned int value
Definition: ConsumerID.h:25
bool stor::ConsumerID::operator== ( ConsumerID  other) const
inline

operator== performs the expected equality test.

Definition at line 45 of file ConsumerID.h.

References value.

45 { return value == other.value; }
unsigned int value
Definition: ConsumerID.h:25

Member Data Documentation

unsigned int stor::ConsumerID::value