Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
uavcan::TimeBase< T, D > Class Template Reference

#include <time.hpp>

Public Member Functions

bool isZero () const
 
bool operator!= (const T &r) const
 
operator+ (const D &r) const
 
T & operator+= (const D &r)
 
operator- (const D &r) const
 
operator- (const T &r) const
 
T & operator-= (const D &r)
 
bool operator< (const T &r) const
 
bool operator<= (const T &r) const
 
bool operator== (const T &r) const
 
bool operator> (const T &r) const
 
bool operator>= (const T &r) const
 
uint64_t toMSec () const
 
void toString (char buf[StringBufSize]) const
 Prints time in seconds with microsecond resolution. More...
 
uint64_t toUSec () const
 

Static Public Member Functions

static T fromMSec (uint64_t ms)
 
static T fromUSec (uint64_t us)
 
static T getMax ()
 

Static Public Attributes

static const unsigned StringBufSize = 32
 

Protected Member Functions

 TimeBase ()
 
 ~TimeBase ()
 

Private Attributes

uint64_t usec_
 

Detailed Description

template<typename T, typename D>
class uavcan::TimeBase< T, D >

Definition at line 95 of file time.hpp.

Constructor & Destructor Documentation

◆ ~TimeBase()

template<typename T , typename D >
uavcan::TimeBase< T, D >::~TimeBase ( )
inlineprotected

Definition at line 100 of file time.hpp.

◆ TimeBase()

template<typename T , typename D >
uavcan::TimeBase< T, D >::TimeBase ( )
inlineprotected

Definition at line 102 of file time.hpp.

Member Function Documentation

◆ fromMSec()

template<typename T , typename D >
static T uavcan::TimeBase< T, D >::fromMSec ( uint64_t  ms)
inlinestatic

Definition at line 118 of file time.hpp.

◆ fromUSec()

template<typename T , typename D >
static T uavcan::TimeBase< T, D >::fromUSec ( uint64_t  us)
inlinestatic

Definition at line 112 of file time.hpp.

◆ getMax()

template<typename T , typename D >
static T uavcan::TimeBase< T, D >::getMax ( )
inlinestatic

Definition at line 110 of file time.hpp.

◆ isZero()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::isZero ( ) const
inline

Definition at line 123 of file time.hpp.

◆ operator!=()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::operator!= ( const T &  r) const
inline

Definition at line 126 of file time.hpp.

◆ operator+()

template<typename T , typename D >
T uavcan::TimeBase< T, D >::operator+ ( const D &  r) const
inline

Definition at line 133 of file time.hpp.

◆ operator+=()

template<typename T , typename D >
T& uavcan::TimeBase< T, D >::operator+= ( const D &  r)
inline

Definition at line 161 of file time.hpp.

◆ operator-() [1/2]

template<typename T , typename D >
T uavcan::TimeBase< T, D >::operator- ( const D &  r) const
inline

Definition at line 152 of file time.hpp.

◆ operator-() [2/2]

template<typename T , typename D >
D uavcan::TimeBase< T, D >::operator- ( const T &  r) const
inline

Definition at line 156 of file time.hpp.

◆ operator-=()

template<typename T , typename D >
T& uavcan::TimeBase< T, D >::operator-= ( const D &  r)
inline

Definition at line 166 of file time.hpp.

◆ operator<()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::operator< ( const T &  r) const
inline

Definition at line 128 of file time.hpp.

◆ operator<=()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::operator<= ( const T &  r) const
inline

Definition at line 130 of file time.hpp.

◆ operator==()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::operator== ( const T &  r) const
inline

Definition at line 125 of file time.hpp.

◆ operator>()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::operator> ( const T &  r) const
inline

Definition at line 129 of file time.hpp.

◆ operator>=()

template<typename T , typename D >
bool uavcan::TimeBase< T, D >::operator>= ( const T &  r) const
inline

Definition at line 131 of file time.hpp.

◆ toMSec()

template<typename T , typename D >
uint64_t uavcan::TimeBase< T, D >::toMSec ( ) const
inline

Definition at line 121 of file time.hpp.

◆ toString()

template<typename T , typename D >
void uavcan::TimeBase< T, D >::toString ( char  buf[StringBufSize]) const

Prints time in seconds with microsecond resolution.

Definition at line 238 of file time.hpp.

◆ toUSec()

template<typename T , typename D >
uint64_t uavcan::TimeBase< T, D >::toUSec ( ) const
inline

Definition at line 120 of file time.hpp.

Member Data Documentation

◆ StringBufSize

template<typename T , typename D >
const unsigned uavcan::TimeBase< T, D >::StringBufSize = 32
static

Definition at line 172 of file time.hpp.

◆ usec_

template<typename T , typename D >
uint64_t uavcan::TimeBase< T, D >::usec_
private

Definition at line 97 of file time.hpp.


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


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:05