$search

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>

List of all members.

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
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
 ~DurationBase ()

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

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

Definition at line 76 of file duration.h.

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

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

template<class T>
ros::DurationBase< T >::DurationBase ( double  t  )  [inline, explicit]

Definition at line 78 of file duration.h.

template<class T>
ros::DurationBase< T >::~DurationBase (  )  [inline]

Definition at line 79 of file duration.h.


Member Function Documentation

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

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

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

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

template<class T >
bool ros::DurationBase< T >::isZero (  )  [inline]

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

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

Definition at line 88 of file duration.h.

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

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

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

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

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

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

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

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

template<class T>
T ros::DurationBase< T >::operator- (  )  const [inline]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

template<class T >
boost::posix_time::time_duration ros::DurationBase< T >::toBoost (  )  const [inline]

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

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

Definition at line 94 of file duration.h.

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

Definition at line 93 of file duration.h.


Member Data Documentation

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

Definition at line 75 of file duration.h.

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 files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


rostime
Author(s): Josh Faust
autogenerated on Sat Mar 2 13:22:41 2013