Time_Value.inl File Reference

#include "ace/Truncate.h"

Include dependency graph for Time_Value.inl:

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

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 218 of file Time_Value.inl.

00219 {
00220   return ACE_Time_Value (tv) *= d;
00221 }

ACE_INLINE ACE_Time_Value operator * ( double  d,
const ACE_Time_Value tv 
)

Definition at line 212 of file Time_Value.inl.

00213 {
00214   return ACE_Time_Value (tv) *= d;
00215 }

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

Definition at line 312 of file Time_Value.inl.

00314 {
00315   // ACE_OS_TRACE ("operator !=");
00316   return !(tv1 == tv2);
00317 }

ACE_INLINE ACE_Time_Value operator+ ( const ACE_Time_Value tv1,
const ACE_Time_Value tv2 
)

Definition at line 380 of file Time_Value.inl.

00382 {
00383   // ACE_OS_TRACE ("operator +");
00384   ACE_Time_Value sum (tv1);
00385   sum += tv2;
00386 
00387   return sum;
00388 }

ACE_INLINE ACE_Time_Value operator- ( const ACE_Time_Value tv1,
const ACE_Time_Value tv2 
)

Definition at line 393 of file Time_Value.inl.

00395 {
00396   // ACE_OS_TRACE ("operator -");
00397   ACE_Time_Value delta (tv1);
00398   delta -= tv2;
00399 
00400   return delta;
00401 }

ACE_INLINE bool operator< ( const ACE_Time_Value tv1,
const ACE_Time_Value tv2 
)

Definition at line 281 of file Time_Value.inl.

00283 {
00284   // ACE_OS_TRACE ("operator <");
00285   return tv2 > tv1;
00286 }

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

Definition at line 291 of file Time_Value.inl.

00293 {
00294   // ACE_OS_TRACE ("operator <=");
00295   return tv2 >= tv1;
00296 }

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

Definition at line 301 of file Time_Value.inl.

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

00303 {
00304   // ACE_OS_TRACE ("operator ==");
00305   return tv1.sec () == tv2.sec ()
00306     && tv1.usec () == tv2.usec ();
00307 }

ACE_INLINE bool operator> ( const ACE_Time_Value tv1,
const ACE_Time_Value tv2 
)

Definition at line 226 of file Time_Value.inl.

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

00228 {
00229   // ACE_OS_TRACE ("operator >");
00230   if (tv1.sec () > tv2.sec ())
00231     return 1;
00232   else if (tv1.sec () == tv2.sec ()
00233            && tv1.usec () > tv2.usec ())
00234     return 1;
00235   else
00236     return 0;
00237 }

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

Definition at line 242 of file Time_Value.inl.

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

00244 {
00245   // ACE_OS_TRACE ("operator >=");
00246   if (tv1.sec () > tv2.sec ())
00247     return 1;
00248   else if (tv1.sec () == tv2.sec ()
00249            && tv1.usec () >= tv2.usec ())
00250     return 1;
00251   else
00252     return 0;
00253 }


Generated on Tue Feb 2 17:34:30 2010 for ACE by  doxygen 1.4.7