LocalGuidance
A library that generates velocity references to follow a path.
message_logger::time::TimeStd Class Reference

#include <TimeStd.hpp>

Inheritance diagram for message_logger::time::TimeStd:
Inheritance graph

Public Member Functions

 TimeStd ()
 
 TimeStd (uint32_t sec, uint32_t nsec)
 
 TimeStd (const Time &time)
 
 TimeStd (uint64_t t)
 
 TimeStd (double t)
 
virtual ~TimeStd ()
 
TimeStdfrom (uint32_t sec, uint32_t nsec)
 
TimeStdfromSec (double t)
 
TimeStdfromNSec (uint64_t t)
 
virtual double toSec () const
 
virtual uint32_t getSec () const
 
virtual uint32_t getNSec () const
 
TimeStdoperator= (const Time &time)
 
TimeStdoperator= (const TimeStd &rhs)
 
TimeStd operator+ (const TimeStd &rhs) const
 
TimeStd operator- (const TimeStd &rhs) const
 
TimeStd operator- () const
 
TimeStdoperator+= (const TimeStd &rhs)
 
TimeStdoperator-= (const TimeStd &rhs)
 
TimeStd operator+ (double t) const
 
TimeStdoperator+= (double t)
 
virtual TimesetNow ()
 
- Public Member Functions inherited from message_logger::time::Time
 Time ()
 
virtual ~Time ()
 

Static Public Member Functions

static TimeStd now ()
 

Protected Member Functions

void normalizeSecNSec (uint64_t &sec, uint64_t &nsec) const
 
void normalizeSecNSec (uint32_t &sec, uint32_t &nsec) const
 
void normalizeSecNSecUnsigned (int64_t &sec, int64_t &nsec) const
 

Protected Attributes

uint32_t sec_
 
uint32_t nsec_
 

Friends

std::ostream & operator<< (std::ostream &out, const TimeStd &rhs)
 

Constructor & Destructor Documentation

◆ TimeStd() [1/5]

message_logger::time::TimeStd::TimeStd ( )

◆ TimeStd() [2/5]

message_logger::time::TimeStd::TimeStd ( uint32_t  sec,
uint32_t  nsec 
)

◆ TimeStd() [3/5]

message_logger::time::TimeStd::TimeStd ( const Time time)

◆ TimeStd() [4/5]

message_logger::time::TimeStd::TimeStd ( uint64_t  t)
explicit

◆ TimeStd() [5/5]

message_logger::time::TimeStd::TimeStd ( double  t)
explicit

◆ ~TimeStd()

virtual message_logger::time::TimeStd::~TimeStd ( )
virtual

Member Function Documentation

◆ from()

TimeStd& message_logger::time::TimeStd::from ( uint32_t  sec,
uint32_t  nsec 
)

◆ fromNSec()

TimeStd& message_logger::time::TimeStd::fromNSec ( uint64_t  t)
virtual

◆ fromSec()

TimeStd& message_logger::time::TimeStd::fromSec ( double  t)
virtual

◆ getNSec()

virtual uint32_t message_logger::time::TimeStd::getNSec ( ) const
virtual

◆ getSec()

virtual uint32_t message_logger::time::TimeStd::getSec ( ) const
virtual

◆ normalizeSecNSec() [1/2]

void message_logger::time::TimeStd::normalizeSecNSec ( uint64_t &  sec,
uint64_t &  nsec 
) const
inlineprotected

◆ normalizeSecNSec() [2/2]

void message_logger::time::TimeStd::normalizeSecNSec ( uint32_t &  sec,
uint32_t &  nsec 
) const
inlineprotected

◆ normalizeSecNSecUnsigned()

void message_logger::time::TimeStd::normalizeSecNSecUnsigned ( int64_t &  sec,
int64_t &  nsec 
) const
inlineprotected

◆ now()

static TimeStd message_logger::time::TimeStd::now ( )
static

◆ operator+() [1/2]

TimeStd message_logger::time::TimeStd::operator+ ( const TimeStd rhs) const

◆ operator+() [2/2]

TimeStd message_logger::time::TimeStd::operator+ ( double  t) const

◆ operator+=() [1/2]

TimeStd& message_logger::time::TimeStd::operator+= ( const TimeStd rhs)

◆ operator+=() [2/2]

TimeStd& message_logger::time::TimeStd::operator+= ( double  t)

◆ operator-() [1/2]

TimeStd message_logger::time::TimeStd::operator- ( const TimeStd rhs) const

◆ operator-() [2/2]

TimeStd message_logger::time::TimeStd::operator- ( ) const

◆ operator-=()

TimeStd& message_logger::time::TimeStd::operator-= ( const TimeStd rhs)

◆ operator=() [1/2]

TimeStd& message_logger::time::TimeStd::operator= ( const Time time)

◆ operator=() [2/2]

TimeStd& message_logger::time::TimeStd::operator= ( const TimeStd rhs)

◆ setNow()

virtual Time& message_logger::time::TimeStd::setNow ( )
virtual

◆ toSec()

virtual double message_logger::time::TimeStd::toSec ( ) const
virtual

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const TimeStd rhs 
)
friend

Member Data Documentation

◆ nsec_

uint32_t message_logger::time::TimeStd::nsec_
protected

◆ sec_

uint32_t message_logger::time::TimeStd::sec_
protected

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