OKVIS ROS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
okvis::WallDuration Class Reference

Duration representation for use with the WallTime class. More...

#include <Duration.hpp>

Inheritance diagram for okvis::WallDuration:
okvis::DurationBase< WallDuration >

Public Member Functions

 WallDuration ()
 
 WallDuration (int32_t _sec, int32_t _nsec)
 
 WallDuration (double t)
 
 WallDuration (const Rate &)
 
bool sleep () const
 sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining. More...
 
- Public Member Functions inherited from okvis::DurationBase< WallDuration >
 DurationBase ()
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
 DurationBase (double t)
 
 ~DurationBase ()
 
WallDuration operator+ (const WallDuration &rhs) const
 
WallDuration operator- (const WallDuration &rhs) const
 
WallDuration operator- () const
 
WallDuration operator* (double scale) const
 
WallDurationoperator+= (const WallDuration &rhs)
 
WallDurationoperator-= (const WallDuration &rhs)
 
WallDurationoperator*= (double scale)
 
bool operator== (const WallDuration &rhs) const
 
bool operator!= (const WallDuration &rhs) const
 
bool operator> (const WallDuration &rhs) const
 
bool operator< (const WallDuration &rhs) const
 
bool operator>= (const WallDuration &rhs) const
 
bool operator<= (const WallDuration &rhs) const
 
double toSec () const
 
int64_t toNSec () const
 
WallDurationfromSec (double t)
 
WallDurationfromNSec (int64_t t)
 
bool isZero ()
 

Additional Inherited Members

- Public Attributes inherited from okvis::DurationBase< WallDuration >
int32_t sec
 
int32_t nsec
 

Detailed Description

Duration representation for use with the WallTime class.

okvis::DurationBase provides most of its functionality.

Constructor & Destructor Documentation

okvis::WallDuration::WallDuration ( )
inline
okvis::WallDuration::WallDuration ( int32_t  _sec,
int32_t  _nsec 
)
inline
okvis::WallDuration::WallDuration ( double  t)
inlineexplicit
okvis::WallDuration::WallDuration ( const Rate &  )
explicit

Member Function Documentation

bool okvis::WallDuration::sleep ( ) const

sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.


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