Base class for Duration implementations. Provides storage, common functions and operator overloads. This should not need to be used directly. More...
#include <duration.h>
Public Member Functions | |
DurationBase (double t) | |
DurationBase (int32_t _sec, int32_t _nsec) | |
DurationBase () | |
T & | fromNSec (int64_t t) |
T & | fromSec (double t) |
bool | isZero () |
bool | operator!= (const T &rhs) const |
T | operator* (double scale) const |
T & | operator*= (double scale) |
T | operator+ (const T &rhs) const |
T & | operator+= (const T &rhs) |
T | operator- () const |
T | operator- (const T &rhs) const |
T & | operator-= (const T &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 |
int64_t | toNSec () const |
double | toSec () const |
~DurationBase () | |
Public Attributes | |
int32_t | nsec |
int32_t | sec |
Base class for Duration implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.
Definition at line 86 of file duration.h.
ros::DurationBase< T >::DurationBase | ( | ) | [inline] |
Definition at line 90 of file duration.h.
ros::DurationBase< T >::DurationBase | ( | int32_t | _sec, | |
int32_t | _nsec | |||
) | [inline] |
Definition at line 172 of file duration.h.
ros::DurationBase< T >::DurationBase | ( | double | t | ) | [inline, explicit] |
Definition at line 92 of file duration.h.
ros::DurationBase< T >::~DurationBase | ( | ) | [inline] |
Definition at line 93 of file duration.h.
T & ros::DurationBase< T >::fromNSec | ( | int64_t | t | ) | [inline] |
Definition at line 196 of file duration.h.
T & ros::DurationBase< T >::fromSec | ( | double | t | ) | [inline] |
Definition at line 179 of file duration.h.
bool ros::DurationBase< T >::isZero | ( | ) | [inline] |
Definition at line 298 of file duration.h.
bool ros::DurationBase< T >::operator!= | ( | const T & | rhs | ) | const [inline] |
Definition at line 102 of file duration.h.
T ros::DurationBase< T >::operator* | ( | double | scale | ) | const [inline] |
Definition at line 213 of file duration.h.
T & ros::DurationBase< T >::operator*= | ( | double | scale | ) | [inline] |
Definition at line 245 of file duration.h.
T ros::DurationBase< T >::operator+ | ( | const T & | rhs | ) | const [inline] |
Definition at line 207 of file duration.h.
T & ros::DurationBase< T >::operator+= | ( | const T & | rhs | ) | [inline] |
Definition at line 231 of file duration.h.
T ros::DurationBase< T >::operator- | ( | ) | const [inline] |
Definition at line 225 of file duration.h.
T ros::DurationBase< T >::operator- | ( | const T & | rhs | ) | const [inline] |
Definition at line 219 of file duration.h.
T & ros::DurationBase< T >::operator-= | ( | const T & | rhs | ) | [inline] |
Definition at line 238 of file duration.h.
bool ros::DurationBase< T >::operator< | ( | const T & | rhs | ) | const [inline] |
Definition at line 252 of file duration.h.
bool ros::DurationBase< T >::operator<= | ( | const T & | rhs | ) | const [inline] |
Definition at line 272 of file duration.h.
bool ros::DurationBase< T >::operator== | ( | const T & | rhs | ) | const [inline] |
Definition at line 292 of file duration.h.
bool ros::DurationBase< T >::operator> | ( | const T & | rhs | ) | const [inline] |
Definition at line 262 of file duration.h.
bool ros::DurationBase< T >::operator>= | ( | const T & | rhs | ) | const [inline] |
Definition at line 282 of file duration.h.
int64_t ros::DurationBase< T >::toNSec | ( | ) | const [inline] |
Definition at line 108 of file duration.h.
double ros::DurationBase< T >::toSec | ( | ) | const [inline] |
Definition at line 107 of file duration.h.
int32_t ros::DurationBase< T >::nsec |
Definition at line 89 of file duration.h.
int32_t ros::DurationBase< T >::sec |
Definition at line 89 of file duration.h.