Public Member Functions | 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

 DurationBase ()
 
 DurationBase (double t)
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
T & fromNSec (int64_t t)
 
T & fromSec (double t)
 
bool isZero () const
 
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
 
boost::posix_time::time_duration toBoost () const
 
int64_t toNSec () const
 
double toSec () const
 

Public Attributes

int32_t nsec
 
int32_t sec
 

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

◆ fromNSec()

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

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

◆ fromSec()

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

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

◆ isZero()

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

Definition at line 208 of file impl/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 121 of file impl/duration.h.

◆ operator*=()

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

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

◆ operator+()

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

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

◆ operator+=()

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

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

◆ operator-() [1/2]

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

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

◆ operator-() [2/2]

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

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

◆ operator-=()

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

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

◆ operator<()

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

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

◆ operator<=()

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

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

◆ operator==()

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

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

◆ operator>()

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

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

◆ operator>=()

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

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

◆ toBoost()

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

Definition at line 215 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.

Member Data Documentation

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


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


rostime
Author(s): Josh Faust
autogenerated on Tue Jun 2 2020 03:31:28