RTI Connext Modern C++ API
Version 6.1.2
|
<<extension>> <<value-type>> A class representing the DDS 64-bit Sequence Number More...
#include <rti/core/SequenceNumber.hpp>
Public Member Functions | |
SequenceNumber () | |
Create a default SequenceNumber, equal to unknown() More... | |
SequenceNumber (int32_t high_value, uint32_t low_value) | |
Create a SequenceNumber with the provided high and low values. More... | |
SequenceNumber (int64_t the_value) | |
Creates a SequenceNumber from an int64_t. More... | |
int32_t | high () const |
Get the value of the most significant part of the sequence number. More... | |
SequenceNumber & | high (int32_t the_value) |
Set the value of the most significant part of the sequence number. More... | |
uint32_t | low () const |
Get the value of the most significant part of the sequence number. More... | |
SequenceNumber & | low (uint32_t the_value) |
Set the value of the least significant part of the sequence number. More... | |
long long | value () const |
Get the value of the sequence number. More... | |
void | value (long long value) |
Set the value of the sequence number. More... | |
SequenceNumber | operator+ (const SequenceNumber &other) const |
Add two SequenceNumbers. More... | |
SequenceNumber | operator- (const SequenceNumber &other) const |
Subtract one SequenceNumber from another. More... | |
SequenceNumber & | operator+= (const SequenceNumber &other) |
Compound assignment operator, assigning the result of the addition to the current SequenceNumber object. More... | |
SequenceNumber & | operator-= (const SequenceNumber &other) |
Compound assignment operator, assigning the result of the subtraction to the current SequenceNumber object. More... | |
SequenceNumber | operator++ () |
Pre-increment the value of the SequenceNumber by 1. More... | |
SequenceNumber | operator++ (int) |
Post-increment the value of the SequenceNumber by 1. More... | |
SequenceNumber | operator-- () |
Pre-decrement the value of the SequenceNumber by 1. More... | |
SequenceNumber | operator-- (int) |
Post-decrement the value of the SequenceNumber by 1. More... | |
bool | operator< (const SequenceNumber &other) const |
Compare two SequenceNumbers for a less-than relationship. More... | |
bool | operator<= (const SequenceNumber &other) const |
Compare two SequenceNumbers for a less-than-or-equal relationship. More... | |
bool | operator> (const SequenceNumber &other) const |
Compare two SequenceNumbers for a greater-than relationship. More... | |
bool | operator>= (const SequenceNumber &other) const |
Compare two SequenceNumbers for a greater-than-or-equal relationship. More... | |
Static Public Member Functions | |
static SequenceNumber | zero () |
Create a SequenceNumber representing 0. More... | |
static SequenceNumber | unknown () |
Create a SequenceNumber representing the unknown SequenceNumber value. More... | |
static SequenceNumber | maximum () |
Create a SequenceNumber representing the highest, most positive value for the sequence number. More... | |
static SequenceNumber | automatic () |
Create a SequenceNumber that will cause the value to be internally determined by RTI Connext. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &out, const SequenceNumber &sn) |
Prints a SequenceNumber to an output stream. More... | |
<<extension>> <<value-type>> A class representing the DDS 64-bit Sequence Number
|
inline |
Create a default SequenceNumber, equal to unknown()
|
inline |
Create a SequenceNumber with the provided high and low values.
high_value | The value for the most significant part of the sequence number. |
low_value | The value for the least significant part of the sequence number. |
|
inline |
Creates a SequenceNumber from an int64_t.
|
inlinestatic |
Create a SequenceNumber representing 0.
|
inlinestatic |
Create a SequenceNumber representing the unknown SequenceNumber value.
|
inlinestatic |
Create a SequenceNumber representing the highest, most positive value for the sequence number.
|
inlinestatic |
Create a SequenceNumber that will cause the value to be internally determined by RTI Connext.
|
inline |
Get the value of the most significant part of the sequence number.
|
inline |
Set the value of the most significant part of the sequence number.
|
inline |
Get the value of the most significant part of the sequence number.
|
inline |
Set the value of the least significant part of the sequence number.
long long rti::core::SequenceNumber::value | ( | ) | const |
Get the value of the sequence number.
void rti::core::SequenceNumber::value | ( | long long | value | ) |
Set the value of the sequence number.
SequenceNumber rti::core::SequenceNumber::operator+ | ( | const SequenceNumber & | other | ) | const |
Add two SequenceNumbers.
SequenceNumber rti::core::SequenceNumber::operator- | ( | const SequenceNumber & | other | ) | const |
Subtract one SequenceNumber from another.
SequenceNumber& rti::core::SequenceNumber::operator+= | ( | const SequenceNumber & | other | ) |
Compound assignment operator, assigning the result of the addition to the current SequenceNumber object.
SequenceNumber& rti::core::SequenceNumber::operator-= | ( | const SequenceNumber & | other | ) |
Compound assignment operator, assigning the result of the subtraction to the current SequenceNumber object.
SequenceNumber rti::core::SequenceNumber::operator++ | ( | ) |
Pre-increment the value of the SequenceNumber by 1.
SequenceNumber rti::core::SequenceNumber::operator++ | ( | int | ) |
Post-increment the value of the SequenceNumber by 1.
SequenceNumber rti::core::SequenceNumber::operator-- | ( | ) |
Pre-decrement the value of the SequenceNumber by 1.
SequenceNumber rti::core::SequenceNumber::operator-- | ( | int | ) |
Post-decrement the value of the SequenceNumber by 1.
bool rti::core::SequenceNumber::operator< | ( | const SequenceNumber & | other | ) | const |
Compare two SequenceNumbers for a less-than relationship.
bool rti::core::SequenceNumber::operator<= | ( | const SequenceNumber & | other | ) | const |
Compare two SequenceNumbers for a less-than-or-equal relationship.
bool rti::core::SequenceNumber::operator> | ( | const SequenceNumber & | other | ) | const |
Compare two SequenceNumbers for a greater-than relationship.
bool rti::core::SequenceNumber::operator>= | ( | const SequenceNumber & | other | ) | const |
Compare two SequenceNumbers for a greater-than-or-equal relationship.
|
related |
Prints a SequenceNumber to an output stream.