Struct SequenceNumber_t

Struct Documentation

struct SequenceNumber_t

Structure SequenceNumber_t, different for each change in the same writer.

Public Functions

inline SequenceNumber_t() noexcept

Default constructor.

inline SequenceNumber_t(int32_t hi, uint32_t lo) noexcept
Parameters
  • hi

  • lo

inline explicit SequenceNumber_t(uint64_t u) noexcept
Parameters

u

inline uint64_t to64long() const noexcept

Convert the number to 64 bit.

Returns

64 bit representation of the SequenceNumber

inline SequenceNumber_t &operator++() noexcept

Increase SequenceNumber in 1.

inline SequenceNumber_t operator++(int) noexcept
inline SequenceNumber_t &operator+=(int inc) noexcept

Increase SequenceNumber.

Parameters

inc – Number to add to the SequenceNumber

Public Members

int32_t high = 0
uint32_t low = 0

Public Static Functions

static inline SequenceNumber_t unknown() noexcept