yat
0.18.2pre
|
#include <yat/utility/BasicQueue.h>
Public Types | |
typedef Container::value_type | value_type |
Type of object stored. | |
typedef Container::size_type | size_type |
Public Member Functions | |
BasicQueue (void) | |
BasicQueue (const BasicQueue &other) | |
BasicQueue (const Container &container) | |
void | clear (void) |
clear queue More... | |
bool | empty (void) const |
void | pop (T &value) |
access next element in queue More... | |
void | push (const T &t) |
insert an element into container | |
void | push (T &&t) |
insert an element into container More... | |
size_type | size (void) const |
bool | try_pop (T &value) |
Protected Member Functions | |
void | assign (const BasicQueue &other) |
Protected Attributes | |
Container | q_ |
data | |
Base class for Queue and PriorityQueue
typedef Container::size_type theplu::yat::utility::detail::BasicQueue< Derived, T, Container >::size_type |
An unsigned integral type.
|
inline |
Default constructor
|
inline |
Copy constructor
|
inlineexplicit |
Construct queue from underlying Container
|
inlineprotected |
assign other to this
|
inline |
clear queue
|
inline |
true
if container's size is zero
|
inline |
access next element in queue
Access the next element is queue. If container is empty, process is waiting until other process is inserting element into container.
|
inline |
insert an element into container
|
inline |
|
inline |