Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ros::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.h>

Public Member Functions

const Duration DAY
 
const WallDuration DAY
 
const Duration DAY
 
const WallDuration DAY
 
 DurationBase ()
 
 DurationBase (double t)
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
T & fromNSec (int64_t t)
 
T & fromSec (double t)
 
const Duration HOUR
 
const WallDuration HOUR
 
const Duration HOUR
 
const WallDuration HOUR
 
bool isZero () const
 
const Duration MAX
 
const WallDuration MAX
 
const Duration MAX
 
const WallDuration MAX
 
const Duration MICROSECOND
 
const WallDuration MICROSECOND
 
const Duration MICROSECOND
 
const WallDuration MICROSECOND
 
const Duration MILLISECOND
 
const WallDuration MILLISECOND
 
const Duration MILLISECOND
 
const WallDuration MILLISECOND
 
const Duration MIN
 
const WallDuration MIN
 
const Duration MIN
 
const WallDuration MIN
 
const Duration MINUTE
 
const WallDuration MINUTE
 
const Duration MINUTE
 
const WallDuration MINUTE
 
const Duration NANOSECOND
 
const WallDuration NANOSECOND
 
const Duration NANOSECOND
 
const WallDuration NANOSECOND
 
bool operator!= (const T &rhs) const
 
operator* (double scale) const
 
T & operator*= (double scale)
 
operator+ (const T &rhs) const
 
T & operator+= (const T &rhs)
 
operator- () const
 
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
 
const Duration SECOND
 
const WallDuration SECOND
 
const Duration SECOND
 
const WallDuration SECOND
 
boost::posix_time::time_duration toBoost () const
 
int64_t toNSec () const
 
double toSec () const
 
const Duration ZERO
 
const WallDuration ZERO
 
const Duration ZERO
 
const WallDuration ZERO
 

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...
 

Detailed Description

template<class T>
class ros::DurationBase< T >

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.

Constructor & Destructor Documentation

◆ DurationBase() [1/3]

template<class T >
ros::DurationBase< T >::DurationBase ( )
inline

Definition at line 76 of file duration.h.

◆ DurationBase() [2/3]

template<class T >
ros::DurationBase< T >::DurationBase ( int32_t  _sec,
int32_t  _nsec 
)

Definition at line 82 of file impl/duration.h.

◆ DurationBase() [3/3]

template<class T >
ros::DurationBase< T >::DurationBase ( double  t)
inlineexplicit

Definition at line 78 of file duration.h.

Member Function Documentation

◆ DAY() [1/4]

Definition at line 97 of file src/time.cpp.

◆ DAY() [2/4]

Definition at line 102 of file src/time.cpp.

◆ DAY() [3/4]

Definition at line 142 of file duration.h.

◆ DAY() [4/4]

Definition at line 178 of file duration.h.

◆ fromNSec()

template<class T >
T & ros::DurationBase< T >::fromNSec ( int64_t  t)

Definition at line 109 of file impl/duration.h.

◆ fromSec()

template<class T >
T & ros::DurationBase< T >::fromSec ( double  t)

Definition at line 89 of file impl/duration.h.

◆ HOUR() [1/4]

Definition at line 96 of file src/time.cpp.

◆ HOUR() [2/4]

Definition at line 103 of file src/time.cpp.

◆ HOUR() [3/4]

Definition at line 143 of file duration.h.

◆ HOUR() [4/4]

Definition at line 179 of file duration.h.

◆ isZero()

template<class T >
bool ros::DurationBase< T >::isZero

Definition at line 217 of file impl/duration.h.

◆ MAX() [1/4]

Definition at line 88 of file src/time.cpp.

◆ MAX() [2/4]

Definition at line 99 of file src/time.cpp.

◆ MAX() [3/4]

Definition at line 139 of file duration.h.

◆ MAX() [4/4]

Definition at line 175 of file duration.h.

◆ MICROSECOND() [1/4]

const Duration ros::DurationBase< Duration >::MICROSECOND

Definition at line 92 of file src/time.cpp.

◆ MICROSECOND() [2/4]

Definition at line 107 of file src/time.cpp.

◆ MICROSECOND() [3/4]

const Duration ros::DurationBase< Duration >::MICROSECOND

Definition at line 147 of file duration.h.

◆ MICROSECOND() [4/4]

Definition at line 183 of file duration.h.

◆ MILLISECOND() [1/4]

const Duration ros::DurationBase< Duration >::MILLISECOND

Definition at line 93 of file src/time.cpp.

◆ MILLISECOND() [2/4]

Definition at line 106 of file src/time.cpp.

◆ MILLISECOND() [3/4]

const Duration ros::DurationBase< Duration >::MILLISECOND

Definition at line 146 of file duration.h.

◆ MILLISECOND() [4/4]

Definition at line 182 of file duration.h.

◆ MIN() [1/4]

Definition at line 89 of file src/time.cpp.

◆ MIN() [2/4]

Definition at line 100 of file src/time.cpp.

◆ MIN() [3/4]

Definition at line 140 of file duration.h.

◆ MIN() [4/4]

Definition at line 176 of file duration.h.

◆ MINUTE() [1/4]

Definition at line 95 of file src/time.cpp.

◆ MINUTE() [2/4]

Definition at line 104 of file src/time.cpp.

◆ MINUTE() [3/4]

Definition at line 144 of file duration.h.

◆ MINUTE() [4/4]

Definition at line 180 of file duration.h.

◆ NANOSECOND() [1/4]

const Duration ros::DurationBase< Duration >::NANOSECOND

Definition at line 91 of file src/time.cpp.

◆ NANOSECOND() [2/4]

Definition at line 108 of file src/time.cpp.

◆ NANOSECOND() [3/4]

const Duration ros::DurationBase< Duration >::NANOSECOND

Definition at line 148 of file duration.h.

◆ NANOSECOND() [4/4]

Definition at line 184 of file duration.h.

◆ operator!=()

template<class T >
bool ros::DurationBase< T >::operator!= ( const T &  rhs) const
inline

Definition at line 87 of file duration.h.

◆ operator*()

template<class T >
T ros::DurationBase< T >::operator* ( double  scale) const

Definition at line 130 of file impl/duration.h.

◆ operator*=()

template<class T >
T & ros::DurationBase< T >::operator*= ( double  scale)

Definition at line 164 of file impl/duration.h.

◆ operator+()

template<class T >
T ros::DurationBase< T >::operator+ ( const T &  rhs) const

Definition at line 123 of file impl/duration.h.

◆ operator+=()

template<class T >
T & ros::DurationBase< T >::operator+= ( const T &  rhs)

Definition at line 150 of file impl/duration.h.

◆ operator-() [1/2]

template<class T >
T ros::DurationBase< T >::operator-

Definition at line 143 of file impl/duration.h.

◆ operator-() [2/2]

template<class T >
T ros::DurationBase< T >::operator- ( const T &  rhs) const

Definition at line 136 of file impl/duration.h.

◆ operator-=()

template<class T >
T & ros::DurationBase< T >::operator-= ( const T &  rhs)

Definition at line 157 of file impl/duration.h.

◆ operator<()

template<class T >
bool ros::DurationBase< T >::operator< ( const T &  rhs) const

Definition at line 171 of file impl/duration.h.

◆ operator<=()

template<class T >
bool ros::DurationBase< T >::operator<= ( const T &  rhs) const

Definition at line 191 of file impl/duration.h.

◆ operator==()

template<class T >
bool ros::DurationBase< T >::operator== ( const T &  rhs) const

Definition at line 211 of file impl/duration.h.

◆ operator>()

template<class T >
bool ros::DurationBase< T >::operator> ( const T &  rhs) const

Definition at line 181 of file impl/duration.h.

◆ operator>=()

template<class T >
bool ros::DurationBase< T >::operator>= ( const T &  rhs) const

Definition at line 201 of file impl/duration.h.

◆ SECOND() [1/4]

Definition at line 94 of file src/time.cpp.

◆ SECOND() [2/4]

Definition at line 105 of file src/time.cpp.

◆ SECOND() [3/4]

Definition at line 145 of file duration.h.

◆ SECOND() [4/4]

Definition at line 181 of file duration.h.

◆ toBoost()

template<class T >
boost::posix_time::time_duration ros::DurationBase< T >::toBoost

Definition at line 224 of file impl/duration.h.

◆ toNSec()

template<class T >
int64_t ros::DurationBase< T >::toNSec ( ) const
inline

Definition at line 93 of file duration.h.

◆ toSec()

template<class T >
double ros::DurationBase< T >::toSec ( ) const
inline

Definition at line 92 of file duration.h.

◆ ZERO() [1/4]

Definition at line 90 of file src/time.cpp.

◆ ZERO() [2/4]

Definition at line 101 of file src/time.cpp.

◆ ZERO() [3/4]

Definition at line 141 of file duration.h.

◆ ZERO() [4/4]

Definition at line 177 of file duration.h.

Member Data Documentation

◆ DAY

template<class T >
const T ros::DurationBase< T >::DAY
static

One day duration.

Definition at line 101 of file duration.h.

◆ HOUR

template<class T >
const T ros::DurationBase< T >::HOUR
static

One hour duration.

Definition at line 102 of file duration.h.

◆ MAX

template<class T >
const T ros::DurationBase< T >::MAX
static

Maximum representable duration.

Definition at line 99 of file duration.h.

◆ MICROSECOND

template<class T >
const T ros::DurationBase< T >::MICROSECOND
static

One microsecond duration.

Definition at line 106 of file duration.h.

◆ MILLISECOND

template<class T >
const T ros::DurationBase< T >::MILLISECOND
static

One millisecond duration.

Definition at line 105 of file duration.h.

◆ MIN

template<class T >
const T ros::DurationBase< T >::MIN
static

Minimum representable duration (negative)

Definition at line 98 of file duration.h.

◆ MINUTE

template<class T >
const T ros::DurationBase< T >::MINUTE
static

One minute duration.

Definition at line 103 of file duration.h.

◆ NANOSECOND

template<class T >
const T ros::DurationBase< T >::NANOSECOND
static

One nanosecond duration.

Definition at line 107 of file duration.h.

◆ nsec

template<class T >
int32_t ros::DurationBase< T >::nsec

Definition at line 75 of file duration.h.

◆ sec

template<class T >
int32_t ros::DurationBase< T >::sec

Definition at line 75 of file duration.h.

◆ SECOND

template<class T >
const T ros::DurationBase< T >::SECOND
static

One second duration.

Definition at line 104 of file duration.h.

◆ ZERO

template<class T >
const T ros::DurationBase< T >::ZERO
static

Zero duration.

Definition at line 100 of file duration.h.


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


rostime
Author(s): Josh Faust, Dirk Thomas
autogenerated on Sat Jun 17 2023 02:32:37