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

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

#include <Duration.hpp>

Public Member Functions

 DurationBase ()
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
 DurationBase (double t)
 
 ~DurationBase ()
 
operator+ (const T &rhs) const
 
operator- (const T &rhs) const
 
operator- () const
 
operator* (double scale) const
 
T & operator+= (const T &rhs)
 
T & operator-= (const T &rhs)
 
T & operator*= (double scale)
 
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
 
int64_t toNSec () const
 
T & fromSec (double t)
 
T & fromNSec (int64_t t)
 
bool isZero ()
 

Public Attributes

int32_t sec
 
int32_t nsec
 

Detailed Description

template<class T>
class okvis::DurationBase< T >

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

Constructor & Destructor Documentation

template<class T>
okvis::DurationBase< T >::DurationBase ( )
inline
template<class T >
okvis::DurationBase< T >::DurationBase ( int32_t  _sec,
int32_t  _nsec 
)
template<class T>
okvis::DurationBase< T >::DurationBase ( double  t)
inlineexplicit
template<class T>
okvis::DurationBase< T >::~DurationBase ( )
inline

Member Function Documentation

template<class T >
T & okvis::DurationBase< T >::fromNSec ( int64_t  t)
template<class T >
T & okvis::DurationBase< T >::fromSec ( double  t)
template<class T >
bool okvis::DurationBase< T >::isZero ( )
template<class T>
bool okvis::DurationBase< T >::operator!= ( const T &  rhs) const
inline
template<class T >
T okvis::DurationBase< T >::operator* ( double  scale) const
template<class T >
T & okvis::DurationBase< T >::operator*= ( double  scale)
template<class T>
T okvis::DurationBase< T >::operator+ ( const T &  rhs) const
template<class T>
T & okvis::DurationBase< T >::operator+= ( const T &  rhs)
template<class T>
T okvis::DurationBase< T >::operator- ( const T &  rhs) const
template<class T>
T okvis::DurationBase< T >::operator- ( ) const
template<class T>
T & okvis::DurationBase< T >::operator-= ( const T &  rhs)
template<class T>
bool okvis::DurationBase< T >::operator< ( const T &  rhs) const
template<class T>
bool okvis::DurationBase< T >::operator<= ( const T &  rhs) const
template<class T>
bool okvis::DurationBase< T >::operator== ( const T &  rhs) const
template<class T>
bool okvis::DurationBase< T >::operator> ( const T &  rhs) const
template<class T>
bool okvis::DurationBase< T >::operator>= ( const T &  rhs) const
template<class T>
int64_t okvis::DurationBase< T >::toNSec ( ) const
inline
template<class T>
double okvis::DurationBase< T >::toSec ( ) const
inline

Member Data Documentation

template<class T>
int32_t okvis::DurationBase< T >::nsec
template<class T>
int32_t okvis::DurationBase< T >::sec

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