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

struct timeval fTv
 

Detailed Description

Definition at line 35 of file DelayQueue.hh.

Constructor & Destructor Documentation

◆ Timeval()

Timeval::Timeval ( time_base_seconds  seconds,
time_base_seconds  useconds 
)
inlineprotected

Definition at line 72 of file DelayQueue.hh.

72 {
73 fTv.tv_sec = seconds; fTv.tv_usec = useconds;
74 }
struct timeval fTv
Definition: DelayQueue.hh:84
time_base_seconds seconds() const
Definition: DelayQueue.hh:37
time_base_seconds useconds() const
Definition: DelayQueue.hh:43

References fTv, seconds(), and useconds().

Member Function Documentation

◆ operator!=()

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

Definition at line 63 of file DelayQueue.hh.

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

◆ operator+=()

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

◆ operator-=()

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

◆ operator<()

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

Definition at line 54 of file DelayQueue.hh.

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

◆ operator<=()

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

Definition at line 51 of file DelayQueue.hh.

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

◆ operator==()

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

Definition at line 60 of file DelayQueue.hh.

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

◆ operator>()

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

Definition at line 57 of file DelayQueue.hh.

57 {
58 return arg2 < *this;
59 }

◆ operator>=()

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

◆ seconds() [1/2]

time_base_seconds Timeval::seconds ( )
inline

Definition at line 40 of file DelayQueue.hh.

40 {
41 return fTv.tv_sec;
42 }

References fTv.

◆ seconds() [2/2]

time_base_seconds Timeval::seconds ( ) const
inline

Definition at line 37 of file DelayQueue.hh.

37 {
38 return fTv.tv_sec;
39 }

References fTv.

Referenced by Timeval().

◆ secs()

time_base_seconds & Timeval::secs ( )
inlineprivate

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 fTv.

◆ useconds() [1/2]

time_base_seconds Timeval::useconds ( )
inline

Definition at line 46 of file DelayQueue.hh.

46 {
47 return fTv.tv_usec;
48 }

References fTv.

◆ useconds() [2/2]

time_base_seconds Timeval::useconds ( ) const
inline

Definition at line 43 of file DelayQueue.hh.

43 {
44 return fTv.tv_usec;
45 }

References fTv.

Referenced by Timeval().

◆ usecs()

time_base_seconds & Timeval::usecs ( )
inlineprivate

Definition at line 80 of file DelayQueue.hh.

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

References fTv.

Field Documentation

◆ fTv

struct timeval Timeval::fTv
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 file: