OKVIS
|
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 () | |
T | operator+ (const T &rhs) const |
T | operator- (const T &rhs) const |
T | operator- () const |
T | 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 |
Base class for Duration implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.
|
inline |
okvis::DurationBase< T >::DurationBase | ( | int32_t | _sec, |
int32_t | _nsec | ||
) |
|
inlineexplicit |
|
inline |
T & okvis::DurationBase< T >::fromNSec | ( | int64_t | t | ) |
T & okvis::DurationBase< T >::fromSec | ( | double | t | ) |
bool okvis::DurationBase< T >::isZero | ( | ) |
|
inline |
T okvis::DurationBase< T >::operator* | ( | double | scale | ) | const |
T & okvis::DurationBase< T >::operator*= | ( | double | scale | ) |
T okvis::DurationBase< T >::operator+ | ( | const T & | rhs | ) | const |
T & okvis::DurationBase< T >::operator+= | ( | const T & | rhs | ) |
T okvis::DurationBase< T >::operator- | ( | const T & | rhs | ) | const |
T okvis::DurationBase< T >::operator- | ( | ) | const |
T & okvis::DurationBase< T >::operator-= | ( | const T & | rhs | ) |
bool okvis::DurationBase< T >::operator< | ( | const T & | rhs | ) | const |
bool okvis::DurationBase< T >::operator<= | ( | const T & | rhs | ) | const |
bool okvis::DurationBase< T >::operator== | ( | const T & | rhs | ) | const |
bool okvis::DurationBase< T >::operator> | ( | const T & | rhs | ) | const |
bool okvis::DurationBase< T >::operator>= | ( | const T & | rhs | ) | const |
|
inline |
|
inline |
int32_t okvis::DurationBase< T >::nsec |
int32_t okvis::DurationBase< T >::sec |