Public Member Functions | Public Attributes | List of all members
rs2rosinternal::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>

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)
 
D operator- (const T &rhs) const
 
operator- (const D &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 ()
 
 TimeBase (uint32_t _sec, uint32_t _nsec)
 
 TimeBase (double t)
 
uint64_t toNSec () const
 
double toSec () const
 
 ~TimeBase ()
 

Public Attributes

uint32_t nsec
 
uint32_t sec
 

Detailed Description

template<class T, class D>
class rs2rosinternal::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 129 of file time.h.

Constructor & Destructor Documentation

template<class T, class D>
rs2rosinternal::TimeBase< T, D >::TimeBase ( )
inline

Definition at line 134 of file time.h.

template<class T, class D>
rs2rosinternal::TimeBase< T, D >::TimeBase ( uint32_t  _sec,
uint32_t  _nsec 
)
inline

Definition at line 135 of file time.h.

template<class T, class D>
rs2rosinternal::TimeBase< T, D >::TimeBase ( double  t)
inlineexplicit

Definition at line 139 of file time.h.

template<class T, class D>
rs2rosinternal::TimeBase< T, D >::~TimeBase ( )
inline

Definition at line 140 of file time.h.

Member Function Documentation

template<class T , class D >
T & rs2rosinternal::TimeBase< T, D >::fromNSec ( uint64_t  t)

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

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

Definition at line 154 of file time.h.

template<class T, class D>
bool rs2rosinternal::TimeBase< T, D >::is_zero ( ) const
inline

Definition at line 167 of file time.h.

template<class T, class D>
bool rs2rosinternal::TimeBase< T, D >::isZero ( ) const
inline

Definition at line 166 of file time.h.

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

Definition at line 147 of file time.h.

template<class T , class D>
T rs2rosinternal::TimeBase< T, D >::operator+ ( const D rhs) const

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

template<class T , class D>
T & rs2rosinternal::TimeBase< T, D >::operator+= ( const D rhs)

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

template<class T, class D >
D rs2rosinternal::TimeBase< T, D >::operator- ( const T &  rhs) const

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

template<class T, class D>
T rs2rosinternal::TimeBase< T, D >::operator- ( const D rhs) const

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

template<class T , class D>
T & rs2rosinternal::TimeBase< T, D >::operator-= ( const D rhs)

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

template<class T, class D >
bool rs2rosinternal::TimeBase< T, D >::operator< ( const T &  rhs) const

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

template<class T, class D >
bool rs2rosinternal::TimeBase< T, D >::operator<= ( const T &  rhs) const

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

template<class T, class D >
bool rs2rosinternal::TimeBase< T, D >::operator== ( const T &  rhs) const

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

template<class T, class D >
bool rs2rosinternal::TimeBase< T, D >::operator> ( const T &  rhs) const

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

template<class T, class D >
bool rs2rosinternal::TimeBase< T, D >::operator>= ( const T &  rhs) const

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

template<class T, class D>
uint64_t rs2rosinternal::TimeBase< T, D >::toNSec ( ) const
inline

Definition at line 163 of file time.h.

template<class T, class D>
double rs2rosinternal::TimeBase< T, D >::toSec ( ) const
inline

Definition at line 153 of file time.h.

Member Data Documentation

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

Definition at line 132 of file time.h.

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

Definition at line 132 of file time.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41