Lines Matching full:other
12 // documentation and/or other materials provided with the distribution.
118 /// \param other The object to compare to.
122 datetime::delta::operator==(const datetime::delta& other) const in operator ==()
124 return seconds == other.seconds && useconds == other.useconds; in operator ==()
130 /// \param other The object to compare to.
134 datetime::delta::operator!=(const datetime::delta& other) const in operator !=()
136 return !(*this == other); in operator !=()
142 /// \param other The object to compare to.
144 /// \return True if this time delta is shorter than other; false otherwise.
146 datetime::delta::operator<(const datetime::delta& other) const in operator <()
148 return seconds < other.seconds || in operator <()
149 (seconds == other.seconds && useconds < other.useconds); in operator <()
155 /// \param other The object to compare to.
160 datetime::delta::operator<=(const datetime::delta& other) const in operator <=()
162 return (*this) < other || (*this) == other; in operator <=()
168 /// \param other The object to compare to.
170 /// \return True if this time delta is larger than other; false otherwise.
172 datetime::delta::operator>(const datetime::delta& other) const in operator >()
174 return seconds > other.seconds || in operator >()
175 (seconds == other.seconds && useconds > other.useconds); in operator >()
181 /// \param other The object to compare to.
186 datetime::delta::operator>=(const datetime::delta& other) const in operator >=()
188 return (*this) > other || (*this) == other; in operator >=()
194 /// \param other The time delta to add.
196 /// \return The addition of this time delta with the other time delta.
198 datetime::delta::operator+(const datetime::delta& other) const in operator +()
201 other.to_microseconds()); in operator +()
207 /// \param other The time delta to add.
209 /// \return The addition of this time delta with the other time delta.
211 datetime::delta::operator+=(const datetime::delta& other) in operator +=() argument
213 *this = *this + other; in operator +=()
457 /// \param other The object to compare to.
461 datetime::timestamp::operator==(const datetime::timestamp& other) const in operator ==()
463 return _pimpl->data.tv_sec == other._pimpl->data.tv_sec && in operator ==()
464 _pimpl->data.tv_usec == other._pimpl->data.tv_usec; in operator ==()
470 /// \param other The object to compare to.
474 datetime::timestamp::operator!=(const datetime::timestamp& other) const in operator !=()
476 return !(*this == other); in operator !=()
482 /// \param other The object to compare to.
484 /// \return True if this timestamp comes before other; false otherwise.
486 datetime::timestamp::operator<(const datetime::timestamp& other) const in operator <()
488 return to_microseconds() < other.to_microseconds(); in operator <()
494 /// \param other The object to compare to.
496 /// \return True if this timestamp comes before other or is equal to it;
499 datetime::timestamp::operator<=(const datetime::timestamp& other) const in operator <=()
501 return to_microseconds() <= other.to_microseconds(); in operator <=()
507 /// \param other The object to compare to.
509 /// \return True if this timestamp comes after other; false otherwise;
511 datetime::timestamp::operator>(const datetime::timestamp& other) const in operator >()
513 return to_microseconds() > other.to_microseconds(); in operator >()
519 /// \param other The object to compare to.
521 /// \return True if this timestamp comes after other or is equal to it;
524 datetime::timestamp::operator>=(const datetime::timestamp& other) const in operator >=()
526 return to_microseconds() >= other.to_microseconds(); in operator >=()
532 /// \param other The delta to add.
536 datetime::timestamp::operator+(const datetime::delta& other) const in operator +()
539 other.to_microseconds()); in operator +()
545 /// \param other The delta to add.
549 datetime::timestamp::operator+=(const datetime::delta& other) in operator +=() argument
551 *this = *this + other; in operator +=()
558 /// \param other The delta to subtract.
562 datetime::timestamp::operator-(const datetime::delta& other) const in operator -()
565 other.to_microseconds()); in operator -()
571 /// \param other The delta to subtract.
575 datetime::timestamp::operator-=(const datetime::delta& other) in operator -=() argument
577 *this = *this - other; in operator -=()
584 /// \param other The subtrahend.
586 /// \return The difference between this object and the other object.
591 datetime::timestamp::operator-(const datetime::timestamp& other) const in operator -()
597 if ((*this) < other) in operator -()
600 other.to_microseconds()); in operator -()