Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
cartographer::sensor::OrderedMultiQueue Class Reference

#include <ordered_multi_queue.h>


struct  Queue

Public Types

using Callback = std::function< void(std::unique_ptr< Data >)>

Public Member Functions

void Add (const QueueKey &queue_key, std::unique_ptr< Data > data)
void AddQueue (const QueueKey &queue_key, Callback callback)
void Flush ()
QueueKey GetBlocker () const
void MarkQueueAsFinished (const QueueKey &queue_key)
 OrderedMultiQueue ()
 ~OrderedMultiQueue ()

Private Member Functions

void CannotMakeProgress (const QueueKey &queue_key)
void Dispatch ()
common::Time GetCommonStartTime (int trajectory_id)

Private Attributes

QueueKey blocker_
std::map< int, common::Timecommon_start_time_per_trajectory_
common::Time last_dispatched_time_ = common::Time::min()
std::map< QueueKey, Queuequeues_

Detailed Description

Definition at line 49 of file ordered_multi_queue.h.

Member Typedef Documentation

using cartographer::sensor::OrderedMultiQueue::Callback = std::function<void(std::unique_ptr<Data>)>

Definition at line 51 of file ordered_multi_queue.h.

Constructor & Destructor Documentation

cartographer::sensor::OrderedMultiQueue::OrderedMultiQueue ( )

Definition at line 41 of file

cartographer::sensor::OrderedMultiQueue::~OrderedMultiQueue ( )

Definition at line 43 of file

Member Function Documentation

void cartographer::sensor::OrderedMultiQueue::Add ( const QueueKey queue_key,
std::unique_ptr< Data data 

Definition at line 63 of file

void cartographer::sensor::OrderedMultiQueue::AddQueue ( const QueueKey queue_key,
Callback  callback 

Definition at line 49 of file

void cartographer::sensor::OrderedMultiQueue::CannotMakeProgress ( const QueueKey queue_key)

Definition at line 151 of file

void cartographer::sensor::OrderedMultiQueue::Dispatch ( )

Definition at line 92 of file

void cartographer::sensor::OrderedMultiQueue::Flush ( )

Definition at line 75 of file

QueueKey cartographer::sensor::OrderedMultiQueue::GetBlocker ( ) const

Definition at line 87 of file

common::Time cartographer::sensor::OrderedMultiQueue::GetCommonStartTime ( int  trajectory_id)

Definition at line 161 of file

void cartographer::sensor::OrderedMultiQueue::MarkQueueAsFinished ( const QueueKey queue_key)

Definition at line 54 of file

Member Data Documentation

QueueKey cartographer::sensor::OrderedMultiQueue::blocker_

Definition at line 93 of file ordered_multi_queue.h.

std::map<int, common::Time> cartographer::sensor::OrderedMultiQueue::common_start_time_per_trajectory_

Definition at line 91 of file ordered_multi_queue.h.

common::Time cartographer::sensor::OrderedMultiQueue::last_dispatched_time_ = common::Time::min()

Definition at line 89 of file ordered_multi_queue.h.

std::map<QueueKey, Queue> cartographer::sensor::OrderedMultiQueue::queues_

Definition at line 92 of file ordered_multi_queue.h.

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

autogenerated on Mon Jun 10 2019 12:51:40