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 Attributes | |
int32_t | nsec |
int32_t | sec |
Static Public Attributes | |
static const T | DAY |
One day duration. More... | |
static const T | HOUR |
One hour duration. More... | |
static const T | MAX |
Maximum representable duration. More... | |
static const T | MICROSECOND |
One microsecond duration. More... | |
static const T | MILLISECOND |
One millisecond duration. More... | |
static const T | MIN |
Minimum representable duration (negative) More... | |
static const T | MINUTE |
One minute duration. More... | |
static const T | NANOSECOND |
One nanosecond duration. More... | |
static const T | SECOND |
One second duration. More... | |
static const T | ZERO |
Zero duration. More... | |
Base class for Duration implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.
Definition at line 72 of file duration.h.
|
inline |
Definition at line 76 of file duration.h.
ros::DurationBase< T >::DurationBase | ( | int32_t | _sec, |
int32_t | _nsec | ||
) |
Definition at line 82 of file impl/duration.h.
|
inlineexplicit |
Definition at line 78 of file duration.h.
const Duration ros::DurationBase< Duration >::DAY |
Definition at line 97 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::DAY |
Definition at line 102 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::DAY |
Definition at line 142 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::DAY |
Definition at line 178 of file duration.h.
T & ros::DurationBase< T >::fromNSec | ( | int64_t | t | ) |
Definition at line 109 of file impl/duration.h.
T & ros::DurationBase< T >::fromSec | ( | double | t | ) |
Definition at line 89 of file impl/duration.h.
const Duration ros::DurationBase< Duration >::HOUR |
Definition at line 96 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::HOUR |
Definition at line 103 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::HOUR |
Definition at line 143 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::HOUR |
Definition at line 179 of file duration.h.
bool ros::DurationBase< T >::isZero |
Definition at line 217 of file impl/duration.h.
const Duration ros::DurationBase< Duration >::MAX |
Definition at line 88 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::MAX |
Definition at line 99 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::MAX |
Definition at line 139 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::MAX |
Definition at line 175 of file duration.h.
const Duration ros::DurationBase< Duration >::MICROSECOND |
Definition at line 92 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::MICROSECOND |
Definition at line 107 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::MICROSECOND |
Definition at line 147 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::MICROSECOND |
Definition at line 183 of file duration.h.
const Duration ros::DurationBase< Duration >::MILLISECOND |
Definition at line 93 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::MILLISECOND |
Definition at line 106 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::MILLISECOND |
Definition at line 146 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::MILLISECOND |
Definition at line 182 of file duration.h.
const Duration ros::DurationBase< Duration >::MIN |
Definition at line 89 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::MIN |
Definition at line 100 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::MIN |
Definition at line 140 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::MIN |
Definition at line 176 of file duration.h.
const Duration ros::DurationBase< Duration >::MINUTE |
Definition at line 95 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::MINUTE |
Definition at line 104 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::MINUTE |
Definition at line 144 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::MINUTE |
Definition at line 180 of file duration.h.
const Duration ros::DurationBase< Duration >::NANOSECOND |
Definition at line 91 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::NANOSECOND |
Definition at line 108 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::NANOSECOND |
Definition at line 148 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::NANOSECOND |
Definition at line 184 of file duration.h.
|
inline |
Definition at line 87 of file duration.h.
T ros::DurationBase< T >::operator* | ( | double | scale | ) | const |
Definition at line 130 of file impl/duration.h.
T & ros::DurationBase< T >::operator*= | ( | double | scale | ) |
Definition at line 164 of file impl/duration.h.
T ros::DurationBase< T >::operator+ | ( | const T & | rhs | ) | const |
Definition at line 123 of file impl/duration.h.
T & ros::DurationBase< T >::operator+= | ( | const T & | rhs | ) |
Definition at line 150 of file impl/duration.h.
T ros::DurationBase< T >::operator- |
Definition at line 143 of file impl/duration.h.
T ros::DurationBase< T >::operator- | ( | const T & | rhs | ) | const |
Definition at line 136 of file impl/duration.h.
T & ros::DurationBase< T >::operator-= | ( | const T & | rhs | ) |
Definition at line 157 of file impl/duration.h.
bool ros::DurationBase< T >::operator< | ( | const T & | rhs | ) | const |
Definition at line 171 of file impl/duration.h.
bool ros::DurationBase< T >::operator<= | ( | const T & | rhs | ) | const |
Definition at line 191 of file impl/duration.h.
bool ros::DurationBase< T >::operator== | ( | const T & | rhs | ) | const |
Definition at line 211 of file impl/duration.h.
bool ros::DurationBase< T >::operator> | ( | const T & | rhs | ) | const |
Definition at line 181 of file impl/duration.h.
bool ros::DurationBase< T >::operator>= | ( | const T & | rhs | ) | const |
Definition at line 201 of file impl/duration.h.
const Duration ros::DurationBase< Duration >::SECOND |
Definition at line 94 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::SECOND |
Definition at line 105 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::SECOND |
Definition at line 145 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::SECOND |
Definition at line 181 of file duration.h.
boost::posix_time::time_duration ros::DurationBase< T >::toBoost |
Definition at line 224 of file impl/duration.h.
|
inline |
Definition at line 93 of file duration.h.
|
inline |
Definition at line 92 of file duration.h.
const Duration ros::DurationBase< Duration >::ZERO |
Definition at line 90 of file src/time.cpp.
const WallDuration ros::DurationBase< WallDuration >::ZERO |
Definition at line 101 of file src/time.cpp.
const Duration ros::DurationBase< Duration >::ZERO |
Definition at line 141 of file duration.h.
const WallDuration ros::DurationBase< WallDuration >::ZERO |
Definition at line 177 of file duration.h.
|
static |
One day duration.
Definition at line 101 of file duration.h.
|
static |
One hour duration.
Definition at line 102 of file duration.h.
|
static |
Maximum representable duration.
Definition at line 99 of file duration.h.
|
static |
One microsecond duration.
Definition at line 106 of file duration.h.
|
static |
One millisecond duration.
Definition at line 105 of file duration.h.
|
static |
Minimum representable duration (negative)
Definition at line 98 of file duration.h.
|
static |
One minute duration.
Definition at line 103 of file duration.h.
|
static |
One nanosecond duration.
Definition at line 107 of file duration.h.
int32_t ros::DurationBase< T >::nsec |
Definition at line 75 of file duration.h.
int32_t ros::DurationBase< T >::sec |
Definition at line 75 of file duration.h.
|
static |
One second duration.
Definition at line 104 of file duration.h.
|
static |
Zero duration.
Definition at line 100 of file duration.h.