$search

ros::TimeBase< T, D > Class Template Reference

Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly. More...

#include <time.h>

List of all members.

Public Member Functions

T & fromNSec (uint64_t t)
T & fromSec (double t)
bool is_zero () const
bool isZero () const
bool operator!= (const T &rhs) const
operator+ (const D &rhs) const
T & operator+= (const D &rhs)
operator- (const D &rhs) const
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 (double t)
 TimeBase (uint32_t _sec, uint32_t _nsec)
 TimeBase ()
boost::posix_time::ptime toBoost () const
uint64_t toNSec () const
double toSec () const
 ~TimeBase ()

Public Attributes

uint32_t nsec
uint32_t sec

Detailed Description

template<class T, class D>
class ros::TimeBase< T, D >

Base class for Time implementations. Provides storage, common functions and operator overloads. This should not need to be used directly.

Definition at line 127 of file time.h.


Constructor & Destructor Documentation

template<class T, class D>
ros::TimeBase< T, D >::TimeBase (  )  [inline]

Definition at line 132 of file time.h.

template<class T, class D>
ros::TimeBase< T, D >::TimeBase ( uint32_t  _sec,
uint32_t  _nsec 
) [inline]

Definition at line 133 of file time.h.

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

Definition at line 137 of file time.h.

template<class T, class D>
ros::TimeBase< T, D >::~TimeBase (  )  [inline]

Definition at line 138 of file time.h.


Member Function Documentation

template<class T , class D >
T & ros::TimeBase< T, D >::fromNSec ( uint64_t  t  )  [inline]

Definition at line 63 of file impl/time.h.

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

Definition at line 152 of file time.h.

template<class T, class D>
bool ros::TimeBase< T, D >::is_zero (  )  const [inline]

Definition at line 158 of file time.h.

template<class T, class D>
bool ros::TimeBase< T, D >::isZero (  )  const [inline]

Definition at line 157 of file time.h.

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

Definition at line 145 of file time.h.

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

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

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

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

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

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

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

Definition at line 74 of file impl/time.h.

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

Definition at line 107 of file impl/time.h.

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

Definition at line 120 of file impl/time.h.

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

Definition at line 140 of file impl/time.h.

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

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

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

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

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

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

template<class T , class D >
boost::posix_time::ptime ros::TimeBase< T, D >::toBoost (  )  const [inline]

Definition at line 161 of file impl/time.h.

template<class T, class D>
uint64_t ros::TimeBase< T, D >::toNSec (  )  const [inline]

Definition at line 154 of file time.h.

template<class T, class D>
double ros::TimeBase< T, D >::toSec (  )  const [inline]

Definition at line 151 of file time.h.


Member Data Documentation

template<class T, class D>
uint32_t ros::TimeBase< T, D >::nsec

Definition at line 130 of file time.h.

template<class T, class D>
uint32_t ros::TimeBase< T, D >::sec

Definition at line 130 of file time.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