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
smproxy::ConnectionID Struct Reference

#include <ConnectionID.h>

Public Member Functions

 ConnectionID (unsigned int id=0)
 
bool isValid () const
 
bool operator!= (ConnectionID other) const
 
ConnectionIDoperator++ ()
 
ConnectionID operator++ (int)
 
bool operator< (ConnectionID other) const
 
bool operator== (ConnectionID other) const
 

Public Attributes

unsigned int value
 

Detailed Description

Uniquely identifies an event server connection.

Author:
mommsen
Revision:
1.2
Date:
2011/03/07 15:41:54

Definition at line 20 of file ConnectionID.h.

Constructor & Destructor Documentation

smproxy::ConnectionID::ConnectionID ( unsigned int  id = 0)
inlineexplicit

Definition at line 24 of file ConnectionID.h.

24 : value(id) { }
unsigned int value
Definition: ConnectionID.h:22

Member Function Documentation

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.

30 { return value != 0; }
unsigned int value
Definition: ConnectionID.h:22
bool smproxy::ConnectionID::operator!= ( ConnectionID  other) const
inline

operator!= is the negation of operator==.

Definition at line 46 of file ConnectionID.h.

References value.

46 { return value != other.value; }
unsigned int value
Definition: ConnectionID.h:22
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.

52 { ++value; return *this; }
unsigned int value
Definition: ConnectionID.h:22
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.

58 {ConnectionID ret(*this); ++value; return ret;}
ConnectionID(unsigned int id=0)
Definition: ConnectionID.h:24
unsigned int value
Definition: ConnectionID.h:22
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.

36 { return value < other.value; }
unsigned int value
Definition: ConnectionID.h:22
bool smproxy::ConnectionID::operator== ( ConnectionID  other) const
inline

operator== performs the expected equality test.

Definition at line 41 of file ConnectionID.h.

References value.

41 { return value == other.value; }
unsigned int value
Definition: ConnectionID.h:22

Member Data Documentation

unsigned int smproxy::ConnectionID::value