25#ifndef __DOTS_ENTITY_ID_H__
26#define __DOTS_ENTITY_ID_H__
59 : m_typeId(typeId),m_instanceId(instanceId) {}
109 return m_typeId == other.m_typeId && m_instanceId == other.m_instanceId;
120 return !(*
this==other);
132 if (m_typeId == other.m_typeId)
134 return m_instanceId < other.m_instanceId;
138 return m_typeId < other.m_typeId;
176 {
return out << entityId.
ToString();}
182 seed ^= hasher(v) + 0x9e3779b9 + (seed<<6) + (seed>>2);
188 size_t result = std::hash<Dob::Typesystem::TypeId>()(eid.
GetTypeId());
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
static void hash_combine(std::size_t &seed, const T &v)
Definition EntityId.h:179
std::size_t hash_value(const Safir::Dob::Typesystem::ChannelId &val)
Definition ChannelId.h:228
static std::wostream & operator<<(std::wostream &out, const ChannelId &channelId)
Definition ChannelId.h:224
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
Class containing the identity of an entity.
Definition EntityId.h:43
bool operator<(const EntityId &other) const
Less-than operator.
Definition EntityId.h:130
void RemoveString()
Remove the included string from the instance id of the entity id.
Definition EntityId.h:70
EntityId()
Default constructor.
Definition EntityId.h:48
const Dob::Typesystem::InstanceId & GetInstanceId() const
Get the Instance number out of the EntityId.
Definition EntityId.h:78
Dob::Typesystem::TypeId GetTypeId() const
Get the type id out of the EntityId.
Definition EntityId.h:92
void SetTypeId(const Dob::Typesystem::TypeId typeId)
Set the type id of the EntityId.
Definition EntityId.h:99
DOTS_CPP_API const std::wstring ToStringNumeric() const
Convert an entity id to a string that has only numeric parts.
bool operator!=(const EntityId &other) const
Inequality operator.
Definition EntityId.h:118
EntityId(const Dob::Typesystem::TypeId typeId, const Dob::Typesystem::InstanceId &instanceId)
Constructor with type id and instance arguments.
Definition EntityId.h:57
bool operator==(const EntityId &other) const
Equality operator.
Definition EntityId.h:107
void SetInstanceId(const Dob::Typesystem::InstanceId &instanceId)
Set the instance number of the EntityId.
Definition EntityId.h:85
DOTS_CPP_API const std::wstring ToString() const
Convert an entity id to a string.
Class containing the identity of an instance.
Definition InstanceId.h:49
void RemoveString()
Remove the included string from the instance id.
Definition InstanceId.h:117
UnderlyingType GetRawValue() const
Get the raw 64 bit integer identifier.
Definition InstanceId.h:174
#define DOTS_CPP_API
Definition Defs.h:33