17.2.2.19.5. Time_t Operators

static inline bool eprosima::fastrtps::rtps::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::fastrtps::rtps::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::fastrtps::rtps::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::fastrtps::rtps::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::fastrtps::rtps::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::fastrtps::rtps::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::fastrtps::rtps::operator<<(std::ostream &output, const Time_t &t)
static inline Time_t eprosima::fastrtps::rtps::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::fastrtps::rtps::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.

static inline bool eprosima::fastrtps::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::fastrtps::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::fastrtps::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::fastrtps::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::fastrtps::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::fastrtps::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::fastrtps::operator<<(std::ostream &output, const Time_t &t)
static inline Time_t eprosima::fastrtps::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::fastrtps::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.