CMS 3D CMS Logo

Public Member Functions | Public Attributes

smproxy::ConnectionID Struct Reference

#include <ConnectionID.h>

List of all members.

Public Member Functions

 ConnectionID (unsigned int id=0)
bool isValid () const
bool operator!= (ConnectionID other) const
ConnectionID operator++ (int)
ConnectionIDoperator++ ()
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) [inline, explicit]

Definition at line 24 of file ConnectionID.h.

: value(id) { }

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.

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

Member Data Documentation

Definition at line 22 of file ConnectionID.h.

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