15.2.2.19.5. Time_t Operators

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

Comparison assignment

Return

True if equal

Parameters

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

Comparison assignment

Return

True if not equal

Parameters

bool rtps::fastrtps::eprosima::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 rtps::fastrtps::eprosima::operator>(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greather than other.

Return

True if the first Time_t is greather than the second

Parameters

bool rtps::fastrtps::eprosima::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 rtps::fastrtps::eprosima::operator>=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greather or equal than other.

Return

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

Parameters

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

Adds two Time_t.

Return

A new Time_t with the result.

Parameters

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

Substracts two Time_t.

Return

A new Time_t with the result.

Parameters
  • ta: First Time_t to substract

  • tb: Second Time_t to substract

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

Comparison assignment

Return

True if equal

Parameters

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

Comparison assignment

Return

True if not equal

Parameters

bool fastrtps::eprosima::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 fastrtps::eprosima::operator>(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greather than other.

Return

True if the first Time_t is greather than the second

Parameters

bool fastrtps::eprosima::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 fastrtps::eprosima::operator>=(const Time_t &t1, const Time_t &t2)

Checks if a Time_t is greather or equal than other.

Return

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

Parameters

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

Adds two Time_t.

Return

A new Time_t with the result.

Parameters

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

Substracts two Time_t.

Return

A new Time_t with the result.

Parameters
  • ta: First Time_t to substract

  • tb: Second Time_t to substract