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
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 86 of file duration.h.


Constructor & Destructor Documentation

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

Definition at line 90 of file duration.h.

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

Definition at line 172 of file duration.h.

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

Definition at line 92 of file duration.h.

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

Definition at line 93 of file duration.h.


Member Function Documentation

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

Definition at line 196 of file duration.h.

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

Definition at line 179 of file duration.h.

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

Definition at line 298 of file duration.h.

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

Definition at line 102 of file duration.h.

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

Definition at line 213 of file duration.h.

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

Definition at line 245 of file duration.h.

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

Definition at line 207 of file duration.h.

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

Definition at line 231 of file duration.h.

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

Definition at line 225 of file duration.h.

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

Definition at line 219 of file duration.h.

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

Definition at line 238 of file duration.h.

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

Definition at line 252 of file duration.h.

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

Definition at line 272 of file duration.h.

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

Definition at line 292 of file duration.h.

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

Definition at line 262 of file duration.h.

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

Definition at line 282 of file duration.h.

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

Definition at line 108 of file duration.h.

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

Definition at line 107 of file duration.h.


Member Data Documentation

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

Definition at line 89 of file duration.h.

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

Definition at line 89 of file duration.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Defines


rostime
Author(s): Josh Faust
autogenerated on Fri Jan 11 10:03:29 2013