Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 int operator> (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE int operator>= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE int operator< (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE int operator<= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE int operator== (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2)
ACE_INLINE int 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 173 of file Time_Value.inl.

00174 {
00175   return ACE_Time_Value (tv) *= d;
00176 }

ACE_INLINE ACE_Time_Value operator * double    d,
const ACE_Time_Value   tv
 

Definition at line 167 of file Time_Value.inl.

00168 {
00169   return ACE_Time_Value (tv) *= d;
00170 }

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

Definition at line 273 of file Time_Value.inl.

00275 {
00276   // ACE_OS_TRACE ("operator !=");
00277   return !(tv1 == tv2);
00278 }

ACE_INLINE ACE_Time_Value operator+ const ACE_Time_Value   tv1,
const ACE_Time_Value   tv2
 

Definition at line 307 of file Time_Value.inl.

References ACE_Time_Value::normalize, ACE_Time_Value::sec, and ACE_Time_Value::usec.

00309 {
00310   // ACE_OS_TRACE ("operator +");
00311   ACE_Time_Value sum (tv1.sec () + tv2.sec (),
00312                       tv1.usec () + tv2.usec ());
00313 
00314   sum.normalize ();
00315   return sum;
00316 }

ACE_INLINE ACE_Time_Value operator- const ACE_Time_Value   tv1,
const ACE_Time_Value   tv2
 

Definition at line 321 of file Time_Value.inl.

References ACE_Time_Value::normalize, ACE_Time_Value::sec, and ACE_Time_Value::usec.

00323 {
00324   // ACE_OS_TRACE ("operator -");
00325   ACE_Time_Value delta (tv1.sec () - tv2.sec (),
00326                         tv1.usec () - tv2.usec ());
00327   delta.normalize ();
00328   return delta;
00329 }

ACE_INLINE int operator< const ACE_Time_Value   tv1,
const ACE_Time_Value   tv2
 

Definition at line 242 of file Time_Value.inl.

00244 {
00245   // ACE_OS_TRACE ("operator <");
00246   return tv2 > tv1;
00247 }

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

Definition at line 252 of file Time_Value.inl.

00254 {
00255   // ACE_OS_TRACE ("operator <=");
00256   return tv2 >= tv1;
00257 }

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

Definition at line 262 of file Time_Value.inl.

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

00264 {
00265   // ACE_OS_TRACE ("operator ==");
00266   return tv1.sec () == tv2.sec ()
00267     && tv1.usec () == tv2.usec ();
00268 }

ACE_INLINE int operator> const ACE_Time_Value   tv1,
const ACE_Time_Value   tv2
 

Definition at line 181 of file Time_Value.inl.

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

00183 {
00184   // ACE_OS_TRACE ("operator >");
00185   if (tv1.sec () > tv2.sec ())
00186     return 1;
00187   else if (tv1.sec () == tv2.sec ()
00188            && tv1.usec () > tv2.usec ())
00189     return 1;
00190   else
00191     return 0;
00192 }

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

Definition at line 197 of file Time_Value.inl.

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

00199 {
00200   // ACE_OS_TRACE ("operator >=");
00201   if (tv1.sec () > tv2.sec ())
00202     return 1;
00203   else if (tv1.sec () == tv2.sec ()
00204            && tv1.usec () >= tv2.usec ())
00205     return 1;
00206   else
00207     return 0;
00208 }


Generated on Mon Jun 16 12:36:29 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002