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

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

#include <Duration.hpp>

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

Public Member Functions

 Duration ()
 
 Duration (int32_t _sec, int32_t _nsec)
 
 Duration (double t)
 
 Duration (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< Duration >
 DurationBase ()
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
 DurationBase (double t)
 
 ~DurationBase ()
 
Duration operator+ (const Duration &rhs) const
 
Duration operator- (const Duration &rhs) const
 
Duration operator- () const
 
Duration operator* (double scale) const
 
Durationoperator+= (const Duration &rhs)
 
Durationoperator-= (const Duration &rhs)
 
Durationoperator*= (double scale)
 
bool operator== (const Duration &rhs) const
 
bool operator!= (const Duration &rhs) const
 
bool operator> (const Duration &rhs) const
 
bool operator< (const Duration &rhs) const
 
bool operator>= (const Duration &rhs) const
 
bool operator<= (const Duration &rhs) const
 
double toSec () const
 
int64_t toNSec () const
 
DurationfromSec (double t)
 
DurationfromNSec (int64_t t)
 
bool isZero ()
 

Additional Inherited Members

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

Detailed Description

Duration representation for use with the Time class.

okvis::DurationBase provides most of its functionality.

Constructor & Destructor Documentation

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

Member Function Documentation

bool okvis::Duration::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: