OKVIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
okvis::TimeBase< T, D > Class Template Reference

Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly. More...

#include <Time.hpp>

Public Member Functions

 TimeBase ()
 
 TimeBase (uint32_t _sec, uint32_t _nsec)
 
 TimeBase (double t)
 
 ~TimeBase ()
 
operator- (const T &rhs) const
 
operator+ (const D &rhs) const
 
operator- (const D &rhs) const
 
T & operator+= (const D &rhs)
 
T & operator-= (const D &rhs)
 
bool operator== (const T &rhs) const
 
bool operator!= (const T &rhs) const
 
bool operator> (const T &rhs) const
 
bool operator< (const T &rhs) const
 
bool operator>= (const T &rhs) const
 
bool operator<= (const T &rhs) const
 
double toSec () const
 
T & fromSec (double t)
 
uint64_t toNSec () const
 
T & fromNSec (uint64_t t)
 
bool isZero () const
 
bool is_zero () const
 

Public Attributes

uint32_t sec
 
uint32_t nsec
 

Detailed Description

template<class T, class D>
class okvis::TimeBase< T, D >

Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.

Constructor & Destructor Documentation

template<class T, class D>
okvis::TimeBase< T, D >::TimeBase ( )
inline
template<class T, class D>
okvis::TimeBase< T, D >::TimeBase ( uint32_t  _sec,
uint32_t  _nsec 
)
inline
template<class T, class D>
okvis::TimeBase< T, D >::TimeBase ( double  t)
inlineexplicit
template<class T, class D>
okvis::TimeBase< T, D >::~TimeBase ( )
inline

Member Function Documentation

template<class T , class D >
T & okvis::TimeBase< T, D >::fromNSec ( uint64_t  t)
template<class T, class D>
T& okvis::TimeBase< T, D >::fromSec ( double  t)
inline
template<class T, class D>
bool okvis::TimeBase< T, D >::is_zero ( ) const
inline
template<class T, class D>
bool okvis::TimeBase< T, D >::isZero ( ) const
inline
template<class T, class D>
bool okvis::TimeBase< T, D >::operator!= ( const T &  rhs) const
inline
template<class T , class D>
T okvis::TimeBase< T, D >::operator+ ( const D &  rhs) const
template<class T , class D>
T & okvis::TimeBase< T, D >::operator+= ( const D &  rhs)
template<class T, class D >
D okvis::TimeBase< T, D >::operator- ( const T &  rhs) const
template<class T, class D>
T okvis::TimeBase< T, D >::operator- ( const D &  rhs) const
template<class T , class D>
T & okvis::TimeBase< T, D >::operator-= ( const D &  rhs)
template<class T, class D >
bool okvis::TimeBase< T, D >::operator< ( const T &  rhs) const
template<class T, class D >
bool okvis::TimeBase< T, D >::operator<= ( const T &  rhs) const
template<class T, class D >
bool okvis::TimeBase< T, D >::operator== ( const T &  rhs) const
template<class T, class D >
bool okvis::TimeBase< T, D >::operator> ( const T &  rhs) const
template<class T, class D >
bool okvis::TimeBase< T, D >::operator>= ( const T &  rhs) const
template<class T, class D>
uint64_t okvis::TimeBase< T, D >::toNSec ( ) const
inline
template<class T, class D>
double okvis::TimeBase< T, D >::toSec ( ) const
inline

Member Data Documentation

template<class T, class D>
uint32_t okvis::TimeBase< T, D >::nsec
template<class T, class D>
uint32_t okvis::TimeBase< T, D >::sec

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