live
Public Member Functions | Private Member Functions | Private Attributes
_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)
 

Private Member Functions

time_base_secondssecs ()
 
time_base_secondsusecs ()
 

Private Attributes

struct timeval fTv
 

Detailed Description

Definition at line 120 of file DelayQueue.hh.

Constructor & Destructor Documentation

◆ _EventTime()

_EventTime::_EventTime ( unsigned  secondsSinceEpoch = 0,
unsigned  usecondsSinceEpoch = 0 
)
inline

Definition at line 122 of file DelayQueue.hh.

125  : Timeval(secondsSinceEpoch, usecondsSinceEpoch) {}
Timeval(time_base_seconds seconds, time_base_seconds useconds)
Definition: DelayQueue.hh:72

Member Function Documentation

◆ operator!=()

int Timeval::operator!= ( Timeval const &  arg2) const
inlineinherited

Definition at line 63 of file DelayQueue.hh.

63  {
64  return !(*this == arg2);
65  }

◆ operator+=()

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

◆ operator-=()

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

◆ operator<()

int Timeval::operator< ( Timeval const &  arg2) const
inlineinherited

Definition at line 54 of file DelayQueue.hh.

54  {
55  return !(*this >= arg2);
56  }

◆ operator<=()

int Timeval::operator<= ( Timeval const &  arg2) const
inlineinherited

Definition at line 51 of file DelayQueue.hh.

51  {
52  return arg2 >= *this;
53  }

◆ operator==()

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

Definition at line 60 of file DelayQueue.hh.

60  {
61  return *this >= arg2 && arg2 >= *this;
62  }

◆ operator>()

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

Definition at line 57 of file DelayQueue.hh.

57  {
58  return arg2 < *this;
59  }

◆ operator>=()

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

◆ seconds() [1/2]

time_base_seconds Timeval::seconds ( )
inlineinherited

Definition at line 40 of file DelayQueue.hh.

40  {
41  return fTv.tv_sec;
42  }
struct timeval fTv
Definition: DelayQueue.hh:84

References Timeval::fTv.

◆ seconds() [2/2]

time_base_seconds Timeval::seconds ( ) const
inlineinherited

Definition at line 37 of file DelayQueue.hh.

37  {
38  return fTv.tv_sec;
39  }

References Timeval::fTv.

Referenced by Timeval::Timeval().

◆ secs()

time_base_seconds& Timeval::secs ( )
inlineprivateinherited

Definition at line 77 of file DelayQueue.hh.

77  {
78  return (time_base_seconds&)fTv.tv_sec;
79  }
long time_base_seconds
Definition: DelayQueue.hh:30

References Timeval::fTv.

◆ useconds() [1/2]

time_base_seconds Timeval::useconds ( )
inlineinherited

Definition at line 46 of file DelayQueue.hh.

46  {
47  return fTv.tv_usec;
48  }

References Timeval::fTv.

◆ useconds() [2/2]

time_base_seconds Timeval::useconds ( ) const
inlineinherited

Definition at line 43 of file DelayQueue.hh.

43  {
44  return fTv.tv_usec;
45  }

References Timeval::fTv.

Referenced by Timeval::Timeval().

◆ usecs()

time_base_seconds& Timeval::usecs ( )
inlineprivateinherited

Definition at line 80 of file DelayQueue.hh.

80  {
81  return (time_base_seconds&)fTv.tv_usec;
82  }

Field Documentation

◆ fTv

struct timeval Timeval::fTv
privateinherited

Definition at line 80 of file DelayQueue.hh.

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


The documentation for this class was generated from the following file: