Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly. More...
#include <time.h>
Public Member Functions | |
T & | fromNSec (uint64_t t) |
T & | fromSec (double t) |
bool | is_zero () const |
bool | isZero () const |
const Time | MAX |
const WallTime | MAX |
const SteadyTime | MAX |
const Time | MAX |
const WallTime | MAX |
const SteadyTime | MAX |
const Time | MIN |
const WallTime | MIN |
const SteadyTime | MIN |
const Time | MIN |
const WallTime | MIN |
const SteadyTime | MIN |
bool | operator!= (const T &rhs) const |
T | operator+ (const D &rhs) const |
T & | operator+= (const D &rhs) |
T | operator- (const D &rhs) const |
D | operator- (const T &rhs) const |
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 |
TimeBase () | |
TimeBase (double t) | |
TimeBase (uint32_t _sec, uint32_t _nsec) | |
boost::posix_time::ptime | toBoost () const |
uint64_t | toNSec () const |
double | toSec () const |
const Time | UNINITIALIZED |
const WallTime | UNINITIALIZED |
const SteadyTime | UNINITIALIZED |
const Time | UNINITIALIZED |
const WallTime | UNINITIALIZED |
const SteadyTime | UNINITIALIZED |
const Time | ZERO |
const WallTime | ZERO |
const SteadyTime | ZERO |
const Time | ZERO |
const WallTime | ZERO |
const SteadyTime | ZERO |
Public Attributes | |
uint32_t | nsec |
uint32_t | sec |
Static Public Attributes | |
static const T | MAX |
Maximum representable time. More... | |
static const T | MIN |
Minimum representable time. More... | |
static const T | UNINITIALIZED |
Uninitialized time. More... | |
static const T | ZERO |
Zero (invalid) time. More... | |
Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.
|
inline |
|
inline |
|
inlineexplicit |
T & ros::TimeBase< T, D >::fromNSec | ( | uint64_t | t | ) |
Definition at line 100 of file impl/time.h.
T & ros::TimeBase< T, D >::fromSec | ( | double | t | ) |
Definition at line 114 of file impl/time.h.
|
inline |
|
inline |
const Time ros::TimeBase< Time, Duration >::MAX |
Definition at line 113 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::MAX |
Definition at line 118 of file src/time.cpp.
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::MAX |
Definition at line 123 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::MAX |
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::MAX |
const Time ros::TimeBase< Time, Duration >::MIN |
Definition at line 114 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::MIN |
Definition at line 119 of file src/time.cpp.
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::MIN |
Definition at line 124 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::MIN |
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::MIN |
|
inline |
T ros::TimeBase< T, D >::operator+ | ( | const D & | rhs | ) | const |
Definition at line 147 of file impl/time.h.
T & ros::TimeBase< T, D >::operator+= | ( | const D & | rhs | ) |
Definition at line 160 of file impl/time.h.
T ros::TimeBase< T, D >::operator- | ( | const D & | rhs | ) | const |
Definition at line 141 of file impl/time.h.
D ros::TimeBase< T, D >::operator- | ( | const T & | rhs | ) | const |
Definition at line 134 of file impl/time.h.
T & ros::TimeBase< T, D >::operator-= | ( | const D & | rhs | ) |
Definition at line 167 of file impl/time.h.
bool ros::TimeBase< T, D >::operator< | ( | const T & | rhs | ) | const |
Definition at line 180 of file impl/time.h.
bool ros::TimeBase< T, D >::operator<= | ( | const T & | rhs | ) | const |
Definition at line 200 of file impl/time.h.
bool ros::TimeBase< T, D >::operator== | ( | const T & | rhs | ) | const |
Definition at line 174 of file impl/time.h.
bool ros::TimeBase< T, D >::operator> | ( | const T & | rhs | ) | const |
Definition at line 190 of file impl/time.h.
bool ros::TimeBase< T, D >::operator>= | ( | const T & | rhs | ) | const |
Definition at line 210 of file impl/time.h.
boost::posix_time::ptime ros::TimeBase< T, D >::toBoost |
Definition at line 221 of file impl/time.h.
|
inline |
|
inline |
const Time ros::TimeBase< Time, Duration >::UNINITIALIZED |
Definition at line 116 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::UNINITIALIZED |
Definition at line 121 of file src/time.cpp.
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::UNINITIALIZED |
Definition at line 126 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::UNINITIALIZED |
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::UNINITIALIZED |
const Time ros::TimeBase< Time, Duration >::ZERO |
Definition at line 115 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::ZERO |
Definition at line 120 of file src/time.cpp.
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::ZERO |
Definition at line 125 of file src/time.cpp.
const WallTime ros::TimeBase< WallTime, WallDuration >::ZERO |
const SteadyTime ros::TimeBase< SteadyTime, WallDuration >::ZERO |
|
static |
|
static |
uint32_t ros::TimeBase< T, D >::nsec |
uint32_t ros::TimeBase< T, D >::sec |
|
static |
|
static |