Public Member Functions | Public Attributes | List of all members
rs2rosinternal::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 (int32_t _sec, int32_t _nsec)
 
 DurationBase (double t)
 
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 T &rhs) const
 
operator- () 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 rs2rosinternal::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>
rs2rosinternal::DurationBase< T >::DurationBase ( )
inline

Definition at line 76 of file duration.h.

template<class T >
rs2rosinternal::DurationBase< T >::DurationBase ( int32_t  _sec,
int32_t  _nsec 
)

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

template<class T>
rs2rosinternal::DurationBase< T >::DurationBase ( double  t)
inlineexplicit

Definition at line 78 of file duration.h.

template<class T>
rs2rosinternal::DurationBase< T >::~DurationBase ( )
inline

Definition at line 79 of file duration.h.

Member Function Documentation

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

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

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

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

template<class T >
bool rs2rosinternal::DurationBase< T >::isZero ( ) const

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

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

Definition at line 88 of file duration.h.

template<class T >
T rs2rosinternal::DurationBase< T >::operator* ( double  scale) const

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

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

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

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

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

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

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

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

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

template<class T>
T rs2rosinternal::DurationBase< T >::operator- ( ) const

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

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

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

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

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

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

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

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

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

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

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

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

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

template<class T>
int64_t rs2rosinternal::DurationBase< T >::toNSec ( ) const
inline

Definition at line 94 of file duration.h.

template<class T>
double rs2rosinternal::DurationBase< T >::toSec ( ) const
inline

Definition at line 93 of file duration.h.

Member Data Documentation

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

Definition at line 75 of file duration.h.

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

Definition at line 75 of file duration.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