19.1.1.10.3. Time_t DDS Operators

static inline bool eprosima::fastdds::dds::operator==(const Time_t &t1, const Time_t &t2)

Comparison assignment

Parameters:
  • t1 – First Time_t to compare

  • t2 – Second Time_t to compare

Returns:

True if equal

static inline bool eprosima::fastdds::dds::operator!=(const Time_t &t1, const Time_t &t2)

Comparison assignment

Parameters:
  • t1 – First Time_t to compare

  • t2 – Second Time_t to compare

Returns:

True if not equal

static inline bool eprosima::fastdds::dds::operator<(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is less than other.

Parameters:
  • t1 – First Time_t to compare

  • t2 – Second Time_t to compare

Returns:

True if the first Time_t is less than the second

static inline bool eprosima::fastdds::dds::operator>(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greater than other.

Parameters:
  • t1 – First Time_t to compare

  • t2 – Second Time_t to compare

Returns:

True if the first Time_t is greater than the second

static inline bool eprosima::fastdds::dds::operator<=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is less or equal than other.

Parameters:
  • t1 – First Time_t to compare

  • t2 – Second Time_t to compare

Returns:

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

static inline bool eprosima::fastdds::dds::operator>=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greater or equal than other.

Parameters:
  • t1 – First Time_t to compare

  • t2 – Second Time_t to compare

Returns:

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

inline std::ostream &eprosima::fastdds::dds::operator<<(std::ostream &output, const Time_t &t)
static inline Time_t eprosima::fastdds::dds::operator+(const Time_t &ta, const Time_t &tb)

Adds two Time_t.

Parameters:
Returns:

A new Time_t with the result.

static inline Time_t eprosima::fastdds::dds::operator-(const Time_t &ta, const Time_t &tb)

Subtracts two Time_t.

Parameters:
  • ta – First Time_t to subtract

  • tb – Second Time_t to subtract

Returns:

A new Time_t with the result.