Struct GUID_t

Struct Documentation

struct GUID_t

Structure GUID_t, entity identifier, unique in DDS-RTPS Domain.

Public Functions

inline GUID_t() noexcept

Default constructor. Contructs an unknown GUID.

inline GUID_t(const GuidPrefix_t &guid_prefix, uint32_t id) noexcept

Construct

Parameters
  • guid_prefix – Guid prefix

  • id – Entity id

inline GUID_t(const GuidPrefix_t &guid_prefix, const EntityId_t &entity_id) noexcept
Parameters
  • guid_prefix – Guid prefix

  • entity_id – Entity id

inline bool is_on_same_host_as(const GUID_t &other_guid) const

Checks whether this guid is for an entity on the same host as another guid.

Parameters

other_guidGUID_t to compare to.

Returns

true when this guid is on the same host, false otherwise.

inline bool is_on_same_process_as(const GUID_t &other_guid) const

Checks whether this guid is for an entity on the same host and process as another guid.

Parameters

other_guidGUID_t to compare to.

Returns

true when this guid is on the same host and process, false otherwise.

inline bool is_builtin() const

Checks whether this guid corresponds to a builtin entity.

Returns

true when this guid corresponds to a builtin entity, false otherwise.

inline explicit operator const InstanceHandle_t&() const

Public Members

GuidPrefix_t guidPrefix

Guid prefix.

EntityId_t entityId

Entity id.

Public Static Functions

static inline GUID_t unknown() noexcept