Apollo
6.0
Open source self driving car software
|
#include <bounded_queue.h>
Public Types | |
using | value_type = T |
using | size_type = uint64_t |
Public Member Functions | |
BoundedQueue () | |
BoundedQueue & | operator= (const BoundedQueue &other)=delete |
BoundedQueue (const BoundedQueue &other)=delete | |
~BoundedQueue () | |
bool | Init (uint64_t size) |
bool | Init (uint64_t size, WaitStrategy *strategy) |
bool | Enqueue (const T &element) |
bool | Enqueue (T &&element) |
bool | WaitEnqueue (const T &element) |
bool | WaitEnqueue (T &&element) |
bool | Dequeue (T *element) |
bool | WaitDequeue (T *element) |
uint64_t | Size () |
bool | Empty () |
void | SetWaitStrategy (WaitStrategy *WaitStrategy) |
void | BreakAllWait () |
uint64_t | Head () |
uint64_t | Tail () |
uint64_t | Commit () |
using apollo::cyber::base::BoundedQueue< T >::size_type = uint64_t |
using apollo::cyber::base::BoundedQueue< T >::value_type = T |
|
inline |
|
delete |
apollo::cyber::base::BoundedQueue< T >::~BoundedQueue | ( | ) |
|
inline |
|
inline |
bool apollo::cyber::base::BoundedQueue< T >::Dequeue | ( | T * | element | ) |
|
inline |
bool apollo::cyber::base::BoundedQueue< T >::Enqueue | ( | const T & | element | ) |
bool apollo::cyber::base::BoundedQueue< T >::Enqueue | ( | T && | element | ) |
|
inline |
|
inline |
bool apollo::cyber::base::BoundedQueue< T >::Init | ( | uint64_t | size, |
WaitStrategy * | strategy | ||
) |
|
delete |
|
inline |
|
inline |
|
inline |
bool apollo::cyber::base::BoundedQueue< T >::WaitDequeue | ( | T * | element | ) |
bool apollo::cyber::base::BoundedQueue< T >::WaitEnqueue | ( | const T & | element | ) |
bool apollo::cyber::base::BoundedQueue< T >::WaitEnqueue | ( | T && | element | ) |