OmniEvents
Time Class Reference

Public Member Functions

 Time ()
 
 Time (CORBA::ULong sec, CORBA::ULong nano)
 
 Time (const Time &right)
 
Timeoperator= (const Time &right)
 
bool operator< (const Time &right) const
 
Timeoperator+= (const Time &right)
 
Time operator+ (const Time &right) const
 
Timeoperator-= (const Time &right)
 
Time operator- (const Time &right) const
 
void operator>>= (cdrMemoryStream &s) const
 
void operator<<= (cdrMemoryStream &s)
 
bool is_nil () const
 

Static Public Member Functions

static Time current ()
 
static void sleepUntil (const Time &futureTime)
 

Private Attributes

CORBA::ULong _sec
 
CORBA::ULong _nano
 

Detailed Description

Definition at line 89 of file events.cc.

Constructor & Destructor Documentation

◆ Time() [1/3]

Time::Time ( )
inline

Definition at line 114 of file events.cc.

◆ Time() [2/3]

Time::Time ( CORBA::ULong  sec,
CORBA::ULong  nano 
)
inline

Definition at line 115 of file events.cc.

◆ Time() [3/3]

Time::Time ( const Time right)
inline

Definition at line 116 of file events.cc.

Member Function Documentation

◆ current()

static Time Time::current ( )
inlinestatic

Definition at line 95 of file events.cc.

References _nano, and _sec.

Referenced by Consumer_i::push(), sleepUntil(), and Supplier_i::supply().

◆ is_nil()

bool Time::is_nil ( ) const
inline

Definition at line 182 of file events.cc.

References _nano, and _sec.

Referenced by Supplier_i::supply().

◆ operator+()

Time Time::operator+ ( const Time right) const
inline

Definition at line 144 of file events.cc.

◆ operator+=()

Time & Time::operator+= ( const Time right)
inline

Definition at line 133 of file events.cc.

References _nano, _sec, and BILLION.

◆ operator-()

Time Time::operator- ( const Time right) const
inline

Definition at line 166 of file events.cc.

◆ operator-=()

Time & Time::operator-= ( const Time right)
inline

Definition at line 150 of file events.cc.

References _nano, _sec, and BILLION.

◆ operator<()

bool Time::operator< ( const Time right) const
inline

Definition at line 126 of file events.cc.

References _nano, and _sec.

◆ operator<<=()

void Time::operator<<= ( cdrMemoryStream &  s)
inline

Definition at line 177 of file events.cc.

References _nano, and _sec.

◆ operator=()

Time & Time::operator= ( const Time right)
inline

Definition at line 117 of file events.cc.

References _nano, and _sec.

◆ operator>>=()

void Time::operator>>= ( cdrMemoryStream &  s) const
inline

Definition at line 172 of file events.cc.

References _nano, and _sec.

◆ sleepUntil()

static void Time::sleepUntil ( const Time futureTime)
inlinestatic

Definition at line 104 of file events.cc.

References _nano, _sec, and current().

Referenced by Supplier_i::supply().

Member Data Documentation

◆ _nano

CORBA::ULong Time::_nano
private

◆ _sec

CORBA::ULong Time::_sec
private

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