EventTime Class Reference

#include <DelayQueue.hh>

Inheritance diagram for EventTime:

Inheritance graph
[legend]
Collaboration diagram for EventTime:

Collaboration graph
[legend]

Public Member Functions

 EventTime (unsigned secondsSinceEpoch=0, unsigned usecondsSinceEpoch=0)
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)

Detailed Description

Definition at line 120 of file DelayQueue.hh.


Constructor & Destructor Documentation

EventTime::EventTime ( unsigned  secondsSinceEpoch = 0,
unsigned  usecondsSinceEpoch = 0 
) [inline]

Definition at line 122 of file DelayQueue.hh.

00124                                      : January 1, 1970
00125     : Timeval(secondsSinceEpoch, usecondsSinceEpoch) {}


Member Function Documentation

time_base_seconds Timeval::seconds (  )  const [inline, inherited]

Definition at line 37 of file DelayQueue.hh.

References Timeval::fTv.

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

00037                                     {
00038     return fTv.tv_sec;
00039   }

time_base_seconds Timeval::seconds (  )  [inline, inherited]

Definition at line 40 of file DelayQueue.hh.

References Timeval::fTv.

00040                               {
00041     return fTv.tv_sec;
00042   }

time_base_seconds Timeval::useconds (  )  const [inline, inherited]

Definition at line 43 of file DelayQueue.hh.

References Timeval::fTv.

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

00043                                      {
00044     return fTv.tv_usec;
00045   }

time_base_seconds Timeval::useconds (  )  [inline, inherited]

Definition at line 46 of file DelayQueue.hh.

References Timeval::fTv.

00046                                {
00047     return fTv.tv_usec;
00048   }

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

Definition at line 28 of file DelayQueue.cpp.

References Timeval::seconds(), and Timeval::useconds().

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

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

Definition at line 51 of file DelayQueue.hh.

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

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

Definition at line 54 of file DelayQueue.hh.

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

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

Definition at line 57 of file DelayQueue.hh.

00057                                            {
00058     return arg2 < *this;
00059   }

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

Definition at line 60 of file DelayQueue.hh.

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

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

Definition at line 63 of file DelayQueue.hh.

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

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

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


The documentation for this class was generated from the following file:
Generated on Thu May 17 07:15:15 2012 for live by  doxygen 1.5.2