Timeval Class Reference

#include <DelayQueue.hh>

Inheritance diagram for Timeval:

Inheritance graph
[legend]

Public Member Functions

time_base_seconds seconds () const
time_base_seconds seconds ()
time_base_seconds useconds () const
time_base_seconds useconds ()
int operator>= (Timeval const &arg2) const
int operator<= (Timeval const &arg2) const
int operator< (Timeval const &arg2) const
int operator> (Timeval const &arg2) const
int operator== (Timeval const &arg2) const
int operator!= (Timeval const &arg2) const
void operator+= (class DelayInterval const &arg2)
void operator-= (class DelayInterval const &arg2)

Protected Member Functions

 Timeval (time_base_seconds seconds, time_base_seconds useconds)

Private Member Functions

time_base_secondssecs ()
time_base_secondsusecs ()

Private Attributes

timeval fTv

Detailed Description

Definition at line 35 of file DelayQueue.hh.


Constructor & Destructor Documentation

Timeval::Timeval ( time_base_seconds  seconds,
time_base_seconds  useconds 
) [inline, protected]

Definition at line 72 of file DelayQueue.hh.

References fTv.

00072                                                                  {
00073     fTv.tv_sec = seconds; fTv.tv_usec = useconds;
00074   }


Member Function Documentation

time_base_seconds Timeval::seconds (  )  const [inline]

Definition at line 37 of file DelayQueue.hh.

References fTv.

Referenced by operator *(), operator-(), operator>=(), and BasicTaskScheduler::SingleStep().

00037                                     {
00038     return fTv.tv_sec;
00039   }

time_base_seconds Timeval::seconds (  )  [inline]

Definition at line 40 of file DelayQueue.hh.

References fTv.

00040                               {
00041     return fTv.tv_sec;
00042   }

time_base_seconds Timeval::useconds (  )  const [inline]

Definition at line 43 of file DelayQueue.hh.

References fTv.

Referenced by operator *(), operator-(), operator>=(), and BasicTaskScheduler::SingleStep().

00043                                      {
00044     return fTv.tv_usec;
00045   }

time_base_seconds Timeval::useconds (  )  [inline]

Definition at line 46 of file DelayQueue.hh.

References fTv.

00046                                {
00047     return fTv.tv_usec;
00048   }

int Timeval::operator>= ( Timeval const &  arg2  )  const

Definition at line 28 of file DelayQueue.cpp.

References seconds(), and useconds().

00028                                                  {
00029   return seconds() > arg2.seconds()
00030     || (seconds() == arg2.seconds()
00031         && useconds() >= arg2.useconds());
00032 }

int Timeval::operator<= ( Timeval const &  arg2  )  const [inline]

Definition at line 51 of file DelayQueue.hh.

00051                                             {
00052     return arg2 >= *this;
00053   }

int Timeval::operator< ( Timeval const &  arg2  )  const [inline]

Definition at line 54 of file DelayQueue.hh.

00054                                            {
00055     return !(*this >= arg2);
00056   }

int Timeval::operator> ( Timeval const &  arg2  )  const [inline]

Definition at line 57 of file DelayQueue.hh.

00057                                            {
00058     return arg2 < *this;
00059   }

int Timeval::operator== ( Timeval const &  arg2  )  const [inline]

Definition at line 60 of file DelayQueue.hh.

00060                                             {
00061     return *this >= arg2 && arg2 >= *this;
00062   }

int Timeval::operator!= ( Timeval const &  arg2  )  const [inline]

Definition at line 63 of file DelayQueue.hh.

00063                                             {
00064     return !(*this == arg2);
00065   }

void Timeval::operator+= ( class DelayInterval const &  arg2  ) 

void Timeval::operator-= ( class DelayInterval const &  arg2  ) 

time_base_seconds& Timeval::secs (  )  [inline, private]

Definition at line 77 of file DelayQueue.hh.

References fTv.

Referenced by operator-().

00077                             {
00078     return (time_base_seconds&)fTv.tv_sec;
00079   }

time_base_seconds& Timeval::usecs (  )  [inline, private]

Definition at line 80 of file DelayQueue.hh.

References fTv.

Referenced by operator-().

00080                              {
00081     return (time_base_seconds&)fTv.tv_usec;
00082   }


Field Documentation

struct timeval Timeval::fTv [read, private]

Definition at line 84 of file DelayQueue.hh.

Referenced by seconds(), secs(), Timeval(), useconds(), and usecs().


The documentation for this class was generated from the following files:
Generated on Tue Oct 7 15:40:13 2008 for live by  doxygen 1.5.2