15.2.2.17.2. SequenceNumber_t OperatorsΒΆ

bool rtps::fastrtps::eprosima::operator==(const SequenceNumber_t &sn1, const SequenceNumber_t &sn2) noexcept

Compares two SequenceNumber_t.

Return

True if equal

Parameters

bool rtps::fastrtps::eprosima::operator!=(const SequenceNumber_t &sn1, const SequenceNumber_t &sn2) noexcept

Compares two SequenceNumber_t.

Return

True if not equal

Parameters

bool rtps::fastrtps::eprosima::operator>(const SequenceNumber_t &seq1, const SequenceNumber_t &seq2) noexcept

Checks if a SequenceNumber_t is greater than other.

Return

True if the first SequenceNumber_t is greater than the second

Parameters

bool rtps::fastrtps::eprosima::operator<(const SequenceNumber_t &seq1, const SequenceNumber_t &seq2) noexcept

Checks if a SequenceNumber_t is less than other.

Return

True if the first SequenceNumber_t is less than the second

Parameters

bool rtps::fastrtps::eprosima::operator>=(const SequenceNumber_t &seq1, const SequenceNumber_t &seq2) noexcept

Checks if a SequenceNumber_t is greater or equal than other.

Return

True if the first SequenceNumber_t is greater or equal than the second

Parameters

bool rtps::fastrtps::eprosima::operator<=(const SequenceNumber_t &seq1, const SequenceNumber_t &seq2) noexcept

Checks if a SequenceNumber_t is less or equal than other.

Return

True if the first SequenceNumber_t is less or equal than the second

Parameters

SequenceNumber_t rtps::fastrtps::eprosima::operator-(const SequenceNumber_t &seq, const uint32_t inc) noexcept

Subtract one uint32_t from a SequenceNumber_t

Return

Result of the substraction

Parameters

SequenceNumber_t rtps::fastrtps::eprosima::operator+(const SequenceNumber_t &seq, const uint32_t inc) noexcept

Add one uint32_t to a SequenceNumber_t

Return

Result of the addition

Parameters
  • [in] seq: Base sequence number

  • inc: value to add to the base

SequenceNumber_t rtps::fastrtps::eprosima::operator-(const SequenceNumber_t &minuend, const SequenceNumber_t &subtrahend) noexcept

Subtract one SequenceNumber_t to another

Return

Result of the subtraction

Parameters
  • minuend: Minuend. Has to be greater than or equal to subtrahend.

  • subtrahend: Subtrahend.

std::ostream &rtps::fastrtps::eprosima::operator<<(std::ostream &output, const SequenceNumber_t &seqNum)

Return

Parameters
  • output:

  • seqNum:

std::ostream &rtps::fastrtps::eprosima::operator<<(std::ostream &output, const std::vector<SequenceNumber_t> &seqNumSet)
std::ostream &rtps::fastrtps::eprosima::operator<<(std::ostream &output, const SequenceNumberSet_t &sns)

Prints a sequence Number set

Return

OStream.

Parameters
  • output: Output Stream

  • sns: SequenceNumber set