Classes | Public Member Functions | Private Member Functions | Private Attributes
cartographer::common::RateTimer< ClockType > Class Template Reference

#include <rate_timer.h>

List of all members.

Classes

struct  Event

Public Member Functions

double ComputeRate () const
double ComputeWallTimeRateRatio () const
std::string DebugString () const
RateTimeroperator= (const RateTimer &)
void Pulse (common::Time time)
 RateTimer (const common::Duration window_duration)
 RateTimer (const RateTimer &)
 ~RateTimer ()

Private Member Functions

std::vector< double > ComputeDeltasInSeconds () const
std::string DeltasDebugString () const

Private Attributes

std::deque< Eventevents_
const common::Duration window_duration_

Detailed Description

template<typename ClockType = std::chrono::steady_clock>
class cartographer::common::RateTimer< ClockType >

Definition at line 37 of file rate_timer.h.


Constructor & Destructor Documentation

template<typename ClockType = std::chrono::steady_clock>
cartographer::common::RateTimer< ClockType >::RateTimer ( const common::Duration  window_duration) [inline, explicit]

Definition at line 41 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
cartographer::common::RateTimer< ClockType >::~RateTimer ( ) [inline]

Definition at line 43 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
cartographer::common::RateTimer< ClockType >::RateTimer ( const RateTimer< ClockType > &  )

Member Function Documentation

template<typename ClockType = std::chrono::steady_clock>
std::vector<double> cartographer::common::RateTimer< ClockType >::ComputeDeltasInSeconds ( ) const [inline, private]

Definition at line 98 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
double cartographer::common::RateTimer< ClockType >::ComputeRate ( ) const [inline]

Definition at line 49 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
double cartographer::common::RateTimer< ClockType >::ComputeWallTimeRateRatio ( ) const [inline]

Definition at line 60 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
std::string cartographer::common::RateTimer< ClockType >::DebugString ( ) const [inline]

Definition at line 80 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
std::string cartographer::common::RateTimer< ClockType >::DeltasDebugString ( ) const [inline, private]

Definition at line 111 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
RateTimer& cartographer::common::RateTimer< ClockType >::operator= ( const RateTimer< ClockType > &  )
template<typename ClockType = std::chrono::steady_clock>
void cartographer::common::RateTimer< ClockType >::Pulse ( common::Time  time) [inline]

Definition at line 70 of file rate_timer.h.


Member Data Documentation

template<typename ClockType = std::chrono::steady_clock>
std::deque<Event> cartographer::common::RateTimer< ClockType >::events_ [private]

Definition at line 128 of file rate_timer.h.

template<typename ClockType = std::chrono::steady_clock>
const common::Duration cartographer::common::RateTimer< ClockType >::window_duration_ [private]

Definition at line 129 of file rate_timer.h.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Thu May 9 2019 02:27:36