Lines Matching refs:that

103     /// This is a static constructor that returns a TimeValue that represents
112 /// Add \p that to \p this.
115 TimeValue& operator += (const TimeValue& that ) {
116 this->seconds_ += that.seconds_ ;
117 this->nanos_ += that.nanos_ ;
122 /// Subtract \p that from \p this.
125 TimeValue& operator -= (const TimeValue &that ) {
126 this->seconds_ -= that.seconds_ ;
127 this->nanos_ -= that.nanos_ ;
132 /// Determine if \p this is less than \p that.
133 /// @returns True iff *this < that.
134 /// @brief True if this < that.
135 int operator < (const TimeValue &that) const { return that > *this; }
137 /// Determine if \p this is greather than \p that.
138 /// @returns True iff *this > that.
139 /// @brief True if this > that.
140 int operator > (const TimeValue &that) const {
141 if ( this->seconds_ > that.seconds_ ) {
143 } else if ( this->seconds_ == that.seconds_ ) {
144 if ( this->nanos_ > that.nanos_ ) return 1;
149 /// Determine if \p this is less than or equal to \p that.
150 /// @returns True iff *this <= that.
151 /// @brief True if this <= that.
152 int operator <= (const TimeValue &that) const { return that >= *this; }
154 /// Determine if \p this is greater than or equal to \p that.
155 /// @returns True iff *this >= that.
156 /// @brief True if this >= that.
157 int operator >= (const TimeValue &that) const {
158 if ( this->seconds_ > that.seconds_ ) {
160 } else if ( this->seconds_ == that.seconds_ ) {
161 if ( this->nanos_ >= that.nanos_ ) return 1;
167 /// @brief True iff *this == that.
168 /// @brief True if this == that.
169 int operator == (const TimeValue &that) const {
170 return (this->seconds_ == that.seconds_) &&
171 (this->nanos_ == that.nanos_);
174 /// Determines if two TimeValue objects represent times that are not the
176 /// @return True iff *this != that.
177 /// @brief True if this != that.
178 int operator != (const TimeValue &that) const { return !(*this == that); }
219 /// Returns the TimeValue as a number of microseconds. Note that the value
229 /// Returns the TimeValue as a number of milliseconds. Note that the value
291 /// involving just the nanoseconds portion. Note that the TimeValue will be
292 /// normalized after this call so that the fractional (nanoseconds) portion
331 /// TimeValue and assigns that value to \p this.
340 /// corresponding TimeValue and assigns that value to \p this.
351 /// This causes the values to be represented so that the fractional