Class UniqueId

Inheritance Relationships

Base Type

  • public iox::cxx::NewType< uint64_t, cxx::newtype::ProtectedConstructByValueCopy, cxx::newtype::Comparable, cxx::newtype::Sortable, cxx::newtype::Convertable, cxx::newtype::CopyConstructable, cxx::newtype::MoveConstructable, cxx::newtype::CopyAssignable, cxx::newtype::MoveAssignable > (Template Class NewType)

Class Documentation

class UniqueId : public iox::cxx::NewType<uint64_t, cxx::newtype::ProtectedConstructByValueCopy, cxx::newtype::Comparable, cxx::newtype::Sortable, cxx::newtype::Convertable, cxx::newtype::CopyConstructable, cxx::newtype::MoveConstructable, cxx::newtype::CopyAssignable, cxx::newtype::MoveAssignable>

Unique IDs within a process starting with 1. Monotonic increasing IDs are created with each call to the constructor. The IDs are copy/move constructible/assignable, comparable, sortable and convertable to the underlying value type.

Public Functions

UniqueId() noexcept

the constructor creates an ID which is greater than the previous created ID