Time_Value.inl File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

ACE_INLINE ACE_Time_Value operator * (double d, const ACE_Time_Value &tv)
ACE_INLINE ACE_Time_Value operator * (const ACE_Time_Value &tv, double d)
ACE_INLINE bool operator> (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE bool operator>= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE bool operator< (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE bool operator<= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE bool operator== (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE bool operator!= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE ACE_Time_Value operator+ (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE ACE_Time_Value operator- (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)


Function Documentation

ACE_INLINE ACE_Time_Value operator * const ACE_Time_Value tv,
double  d
 

Definition at line 214 of file Time_Value.inl.

References ACE_Time_Value.

00215 {
00216   return ACE_Time_Value (tv) *= d;
00217 }

ACE_INLINE ACE_Time_Value operator * double  d,
const ACE_Time_Value tv
 

Definition at line 208 of file Time_Value.inl.

References ACE_Time_Value.

00209 {
00210   return ACE_Time_Value (tv) *= d;
00211 }

ACE_INLINE bool operator!= const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 308 of file Time_Value.inl.

00310 {
00311   // ACE_OS_TRACE ("operator !=");
00312   return !(tv1 == tv2);
00313 }

ACE_INLINE ACE_Time_Value operator+ const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 376 of file Time_Value.inl.

00378 {
00379   // ACE_OS_TRACE ("operator +");
00380   ACE_Time_Value sum (tv1);
00381   sum += tv2;
00382 
00383   return sum;
00384 }

ACE_INLINE ACE_Time_Value operator- const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 389 of file Time_Value.inl.

00391 {
00392   // ACE_OS_TRACE ("operator -");
00393   ACE_Time_Value delta (tv1);
00394   delta -= tv2;
00395 
00396   return delta;
00397 }

ACE_INLINE bool operator< const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 277 of file Time_Value.inl.

00279 {
00280   // ACE_OS_TRACE ("operator <");
00281   return tv2 > tv1;
00282 }

ACE_INLINE bool operator<= const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 287 of file Time_Value.inl.

00289 {
00290   // ACE_OS_TRACE ("operator <=");
00291   return tv2 >= tv1;
00292 }

ACE_INLINE bool operator== const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 297 of file Time_Value.inl.

References ACE_Time_Value::sec(), and ACE_Time_Value::usec().

00299 {
00300   // ACE_OS_TRACE ("operator ==");
00301   return tv1.sec () == tv2.sec ()
00302     && tv1.usec () == tv2.usec ();
00303 }

ACE_INLINE bool operator> const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 222 of file Time_Value.inl.

References ACE_Time_Value::sec(), and ACE_Time_Value::usec().

00224 {
00225   // ACE_OS_TRACE ("operator >");
00226   if (tv1.sec () > tv2.sec ())
00227     return 1;
00228   else if (tv1.sec () == tv2.sec ()
00229            && tv1.usec () > tv2.usec ())
00230     return 1;
00231   else
00232     return 0;
00233 }

ACE_INLINE bool operator>= const ACE_Time_Value tv1,
const ACE_Time_Value tv2
 

Definition at line 238 of file Time_Value.inl.

References ACE_Time_Value::sec(), and ACE_Time_Value::usec().

00240 {
00241   // ACE_OS_TRACE ("operator >=");
00242   if (tv1.sec () > tv2.sec ())
00243     return 1;
00244   else if (tv1.sec () == tv2.sec ()
00245            && tv1.usec () >= tv2.usec ())
00246     return 1;
00247   else
00248     return 0;
00249 }


Generated on Thu Nov 9 11:13:32 2006 for ACE by doxygen 1.3.6