#include <ordered_multi_queue.h>
Classes | |
struct | Queue |
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 (OrderedMultiQueue &&queue) | |
~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::Time > | common_start_time_per_trajectory_ |
common::Time | last_dispatched_time_ = common::Time::min() |
std::map< QueueKey, Queue > | queues_ |
Definition at line 49 of file ordered_multi_queue.h.
Definition at line 41 of file ordered_multi_queue.cc.
Definition at line 43 of file ordered_multi_queue.cc.
void cartographer::sensor::OrderedMultiQueue::Add | ( | const QueueKey & | queue_key, |
std::unique_ptr< Data > | data | ||
) |
Definition at line 63 of file ordered_multi_queue.cc.
void cartographer::sensor::OrderedMultiQueue::AddQueue | ( | const QueueKey & | queue_key, |
Callback | callback | ||
) |
Definition at line 49 of file ordered_multi_queue.cc.
void cartographer::sensor::OrderedMultiQueue::CannotMakeProgress | ( | const QueueKey & | queue_key | ) | [private] |
Definition at line 151 of file ordered_multi_queue.cc.
void cartographer::sensor::OrderedMultiQueue::Dispatch | ( | ) | [private] |
Definition at line 92 of file ordered_multi_queue.cc.
Definition at line 75 of file ordered_multi_queue.cc.
Definition at line 87 of file ordered_multi_queue.cc.
common::Time cartographer::sensor::OrderedMultiQueue::GetCommonStartTime | ( | int | trajectory_id | ) | [private] |
Definition at line 161 of file ordered_multi_queue.cc.
void cartographer::sensor::OrderedMultiQueue::MarkQueueAsFinished | ( | const QueueKey & | queue_key | ) |
Definition at line 54 of file ordered_multi_queue.cc.
Definition at line 95 of file ordered_multi_queue.h.
std::map<int, common::Time> cartographer::sensor::OrderedMultiQueue::common_start_time_per_trajectory_ [private] |
Definition at line 93 of file ordered_multi_queue.h.
common::Time cartographer::sensor::OrderedMultiQueue::last_dispatched_time_ = common::Time::min() [private] |
Definition at line 91 of file ordered_multi_queue.h.
std::map<QueueKey, Queue> cartographer::sensor::OrderedMultiQueue::queues_ [private] |
Definition at line 94 of file ordered_multi_queue.h.