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

message_logger::time::TimeStd::TimeStd ( )
message_logger::time::TimeStd::TimeStd ( uint32_t  sec,
uint32_t  nsec 
)
message_logger::time::TimeStd::TimeStd ( const Time time)
message_logger::time::TimeStd::TimeStd ( uint64_t  t)
explicit
message_logger::time::TimeStd::TimeStd ( double  t)
explicit
virtual message_logger::time::TimeStd::~TimeStd ( )
virtual

Member Function Documentation

TimeStd& message_logger::time::TimeStd::from ( uint32_t  sec,
uint32_t  nsec 
)
TimeStd& message_logger::time::TimeStd::fromNSec ( uint64_t  t)
virtual
TimeStd& message_logger::time::TimeStd::fromSec ( double  t)
virtual
virtual uint32_t message_logger::time::TimeStd::getNSec ( ) const
virtual
virtual uint32_t message_logger::time::TimeStd::getSec ( ) const
virtual
void message_logger::time::TimeStd::normalizeSecNSec ( uint64_t &  sec,
uint64_t &  nsec 
) const
inlineprotected
void message_logger::time::TimeStd::normalizeSecNSec ( uint32_t &  sec,
uint32_t &  nsec 
) const
inlineprotected
void message_logger::time::TimeStd::normalizeSecNSecUnsigned ( int64_t &  sec,
int64_t &  nsec 
) const
inlineprotected
static TimeStd message_logger::time::TimeStd::now ( )
static
TimeStd message_logger::time::TimeStd::operator+ ( const TimeStd rhs) const
TimeStd message_logger::time::TimeStd::operator+ ( double  t) const
TimeStd& message_logger::time::TimeStd::operator+= ( const TimeStd rhs)
TimeStd& message_logger::time::TimeStd::operator+= ( double  t)
TimeStd message_logger::time::TimeStd::operator- ( const TimeStd rhs) const
TimeStd message_logger::time::TimeStd::operator- ( ) const
TimeStd& message_logger::time::TimeStd::operator-= ( const TimeStd rhs)
TimeStd& message_logger::time::TimeStd::operator= ( const Time time)
TimeStd& message_logger::time::TimeStd::operator= ( const TimeStd rhs)
virtual Time& message_logger::time::TimeStd::setNow ( )
virtual
virtual double message_logger::time::TimeStd::toSec ( ) const
virtual

Friends And Related Function Documentation

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

Member Data Documentation

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

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