Sirikata
Classes | Public Member Functions | Static Public Member Functions | Private Attributes
Sirikata::OHDP::NodeID Class Reference

#include <Defs.hpp>

Collaboration diagram for Sirikata::OHDP::NodeID:

List of all members.

Classes

class  Hasher

Public Member Functions

 NodeID ()
 NodeID (uint32 rhs)
 NodeID (const NodeID &rhs)
 NodeID (const String &rhs)
NodeIDoperator= (const NodeID &rhs)
NodeIDoperator= (uint32 rhs)
 operator uint32 () const
bool operator== (const NodeID &rhs) const
bool operator!= (const NodeID &rhs) const
bool operator> (const NodeID &rhs) const
bool operator>= (const NodeID &rhs) const
bool operator< (const NodeID &rhs) const
bool operator<= (const NodeID &rhs) const
String toString () const
bool matches (const NodeID &rhs) const
 Returns true if the ports match, i.e.
size_t hash () const

Static Public Member Functions

static const NodeIDnull ()
 Get a null NodeID.
static const NodeIDself ()
 Get a self NodeID, the one used for the local endpoint.
static const NodeIDany ()
 Get a NodeID that matches any other NodeID.

Private Attributes

uint32 mValue

Constructor & Destructor Documentation

Sirikata::OHDP::NodeID::NodeID ( )
Sirikata::OHDP::NodeID::NodeID ( uint32  rhs)
Sirikata::OHDP::NodeID::NodeID ( const NodeID rhs)
Sirikata::OHDP::NodeID::NodeID ( const String &  rhs) [explicit]

References mValue, and NULL_NODE_ID.


Member Function Documentation

const NodeID & Sirikata::OHDP::NodeID::any ( ) [static]

Get a NodeID that matches any other NodeID.

References ANY_NODE_ID.

Referenced by Sirikata::OHDP::Endpoint::any().

size_t Sirikata::OHDP::NodeID::hash ( ) const [inline]
bool Sirikata::OHDP::NodeID::matches ( const NodeID rhs) const

Returns true if the ports match, i.e.

if they are equal or one of them is any().

References ANY_NODE_ID, and mValue.

const NodeID & Sirikata::OHDP::NodeID::null ( ) [static]
Sirikata::OHDP::NodeID::operator uint32 ( ) const

References mValue.

bool Sirikata::OHDP::NodeID::operator!= ( const NodeID rhs) const

References mValue.

bool Sirikata::OHDP::NodeID::operator< ( const NodeID rhs) const

References mValue.

bool Sirikata::OHDP::NodeID::operator<= ( const NodeID rhs) const

References mValue.

NodeID & Sirikata::OHDP::NodeID::operator= ( const NodeID rhs)

References mValue.

NodeID & Sirikata::OHDP::NodeID::operator= ( uint32  rhs)

References mValue.

bool Sirikata::OHDP::NodeID::operator== ( const NodeID rhs) const

References mValue.

bool Sirikata::OHDP::NodeID::operator> ( const NodeID rhs) const

References mValue.

bool Sirikata::OHDP::NodeID::operator>= ( const NodeID rhs) const

References mValue.

const NodeID & Sirikata::OHDP::NodeID::self ( ) [static]
String Sirikata::OHDP::NodeID::toString ( ) const

References mValue.

Referenced by Sirikata::OHDP::SpaceNodeID::toString().


Member Data Documentation


The documentation for this class was generated from the following files: