Sirikata
|
A fully qualified ODP endpoint: SpaceID, ObjectReference, and PortID. More...
#include <Defs.hpp>
Public Types | |
typedef Sirikata::XDP::Endpoint < ObjectReference > | EndpointBase |
typedef std::tr1::function < void(const Endpoint &src, const Endpoint &dst, MemoryReference)> | MessageHandler |
Function signature for an ODP message handler. | |
Public Member Functions | |
Endpoint (const SpaceID &space, const ObjectReference &obj, const PortID &port) | |
Endpoint (const SpaceObjectReference &space_obj, const PortID &port) | |
const ObjectReference & | object () const |
SpaceObjectReference | spaceObject () const |
Static Public Member Functions | |
static const Endpoint & | null () |
Get a null Endpoint, i.e. | |
static const Endpoint & | any () |
Get an Endpoint that matches any other Endpoint, i.e. | |
Private Member Functions | |
Endpoint () |
A fully qualified ODP endpoint: SpaceID, ObjectReference, and PortID.
Note that this does not have to be bound to unique values. For instance, to specify coverage of all ports, PortID::any() could be used. However, depending on context, the use of non-specific values may be invalid.
typedef std::tr1::function<void(const Endpoint& src, const Endpoint& dst, MemoryReference)> Sirikata::ODP::Endpoint::MessageHandler |
Sirikata::ODP::Endpoint::Endpoint | ( | const SpaceID & | space, |
const ObjectReference & | obj, | ||
const PortID & | port | ||
) | [inline] |
Reimplemented from Sirikata::XDP::Endpoint< ObjectReference >.
Sirikata::ODP::Endpoint::Endpoint | ( | const SpaceObjectReference & | space_obj, |
const PortID & | port | ||
) | [inline] |
Sirikata::ODP::Endpoint::Endpoint | ( | ) | [private] |
Reimplemented from Sirikata::XDP::Endpoint< ObjectReference >.
static const Endpoint& Sirikata::ODP::Endpoint::any | ( | ) | [inline, static] |
Get an Endpoint that matches any other Endpoint, i.e.
where each component is its respective any() value.
References Sirikata::XDP::PortID::any(), Sirikata::ObjectReference::any(), and Sirikata::SpaceID::any().
static const Endpoint& Sirikata::ODP::Endpoint::null | ( | ) | [inline, static] |
Get a null Endpoint, i.e.
one where each component is null.
References Sirikata::XDP::PortID::null(), Sirikata::ObjectReference::null(), and Sirikata::SpaceID::null().
const ObjectReference& Sirikata::ODP::Endpoint::object | ( | ) | const [inline] |
SpaceObjectReference Sirikata::ODP::Endpoint::spaceObject | ( | ) | const [inline] |