Sirikata
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
Sirikata::SpaceID Class Reference

A reference to an object in a space. More...

#include <SpaceID.hpp>

Inheritance diagram for Sirikata::SpaceID:
Collaboration diagram for Sirikata::SpaceID:

List of all members.

Classes

class  Hasher

Public Types

enum  { static_size = UUID::static_size }

Public Member Functions

 SpaceID ()
 SpaceID (const UUID &id)
 SpaceID (const String &str)
 SpaceID (const UUID::Data &data)
UUID::Data toRawBytes () const
String toRawHexData () const
bool isNull () const
String toString () const
unsigned int hash () const
const UUIDgetObjectUUID () const
 Get the UUID of the object referred to.
UUID getAsUUID () const
 Get this object reference in the form of an UUID.
bool operator== (const SpaceID &rhs) const
bool operator< (const SpaceID &rhs) const
bool matches (const SpaceID &rhs) const

Static Public Member Functions

static const SpaceIDnull ()
static const SpaceIDany ()
 Get a reserved SpaceID which is a sentinal to match any other SpaceID.

Private Attributes

UUID mID

Detailed Description

A reference to an object in a space.

This can be used as an address to send a message to an object via a space. SpaceIDs are specific to spaces, i.e. they are not guaranteed to work in spaces other than the one they originated in.


Member Enumeration Documentation

anonymous enum
Enumerator:
static_size 

Constructor & Destructor Documentation

Sirikata::SpaceID::SpaceID ( )
Sirikata::SpaceID::SpaceID ( const UUID id) [explicit]
Sirikata::SpaceID::SpaceID ( const String &  str) [explicit]
Sirikata::SpaceID::SpaceID ( const UUID::Data data) [explicit]

Member Function Documentation

static const SpaceID& Sirikata::SpaceID::any ( ) [inline, static]
UUID Sirikata::SpaceID::getAsUUID ( ) const [inline]

Get this object reference in the form of an UUID.

This value is space-specific and used in contexts where objects need to be addressed by some form of UUID, e.g. for message routing. Note the contrast with getObjectUUID().

const UUID& Sirikata::SpaceID::getObjectUUID ( ) const [inline]

Get the UUID of the object referred to.

This is not necessarily space-specific, it is just the value used to construct this reference. Note the contrast with getAsUUID().

unsigned int Sirikata::SpaceID::hash ( ) const [inline]
bool Sirikata::SpaceID::isNull ( ) const [inline]
bool Sirikata::SpaceID::matches ( const SpaceID rhs) const [inline]
static const SpaceID& Sirikata::SpaceID::null ( ) [inline, static]
bool Sirikata::SpaceID::operator< ( const SpaceID rhs) const [inline]

References mID.

bool Sirikata::SpaceID::operator== ( const SpaceID rhs) const [inline]

References mID.

UUID::Data Sirikata::SpaceID::toRawBytes ( ) const [inline]
String Sirikata::SpaceID::toRawHexData ( ) const [inline]
String Sirikata::SpaceID::toString ( ) const [inline]

Member Data Documentation

Referenced by operator<(), and operator==().


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