17.2.2.19.5. Time_t Operators

bool eprosima::fastrtps::rtps::operator==(const Time_t &t1, const Time_t &t2)

Comparison assignment

Return

True if equal

Parameters

bool eprosima::fastrtps::rtps::operator!=(const Time_t &t1, const Time_t &t2)

Comparison assignment

Return

True if not equal

Parameters

bool eprosima::fastrtps::rtps::operator<(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is less than other.

Return

True if the first Time_t is less than the second

Parameters

bool eprosima::fastrtps::rtps::operator>(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greater than other.

Return

True if the first Time_t is greater than the second

Parameters

bool eprosima::fastrtps::rtps::operator<=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is less or equal than other.

Return

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

Parameters

bool eprosima::fastrtps::rtps::operator>=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greater or equal than other.

Return

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

Parameters

std::ostream &eprosima::fastrtps::rtps::operator<<(std::ostream &output, const Time_t &t)
Time_t eprosima::fastrtps::rtps::operator+(const Time_t &ta, const Time_t &tb)

Adds two Time_t.

Return

A new Time_t with the result.

Parameters

Time_t eprosima::fastrtps::rtps::operator-(const Time_t &ta, const Time_t &tb)

Subtracts two Time_t.

Return

A new Time_t with the result.

Parameters
  • ta: First Time_t to subtract

  • tb: Second Time_t to subtract

bool eprosima::fastrtps::operator==(const Time_t &t1, const Time_t &t2)

Comparison assignment

Return

True if equal

Parameters

bool eprosima::fastrtps::operator!=(const Time_t &t1, const Time_t &t2)

Comparison assignment

Return

True if not equal

Parameters

bool eprosima::fastrtps::operator<(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is less than other.

Return

True if the first Time_t is less than the second

Parameters

bool eprosima::fastrtps::operator>(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greater than other.

Return

True if the first Time_t is greater than the second

Parameters

bool eprosima::fastrtps::operator<=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is less or equal than other.

Return

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

Parameters

bool eprosima::fastrtps::operator>=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greater or equal than other.

Return

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

Parameters

std::ostream &eprosima::fastrtps::operator<<(std::ostream &output, const Time_t &t)
Time_t eprosima::fastrtps::operator+(const Time_t &ta, const Time_t &tb)

Adds two Time_t.

Return

A new Time_t with the result.

Parameters

Time_t eprosima::fastrtps::operator-(const Time_t &ta, const Time_t &tb)

Subtracts two Time_t.

Return

A new Time_t with the result.

Parameters
  • ta: First Time_t to subtract

  • tb: Second Time_t to subtract