#include <elm/data/VectorQueue.h>
◆ VectorQueue()
Build a new vector queque. The passed capacity will be used for computing the actual capacity as power of two of the capacity.
- Parameters
-
capacity | Capacity exponent. |
◆ ~VectorQueue()
◆ capacity()
int capacity |
( |
void |
| ) |
const |
|
inline |
Get the current capacity of the queue.
- Returns
- Current capacity.
◆ contains()
bool contains |
( |
const T & |
val | ) |
const |
|
inline |
Test if the queue contains the given value.
- Parameters
-
val | Value to look in the queue. |
- Returns
- True if the value is found, false else.
◆ get()
◆ head()
const T & head |
( |
void |
| ) |
const |
|
inline |
Get the head item of the queue without removing it.
- Warning
- It is an error to perform this call when the queue is empty.
- Returns
- Head item.
◆ isEmpty()
Test if the queue is empty.
- Returns
- True if the queue is empty, false else.
◆ operator bool()
◆ operator*()
T & operator* |
( |
void |
| ) |
const |
|
inline |
◆ operator->()
T * operator-> |
( |
void |
| ) |
const |
|
inline |
◆ put()
void put |
( |
const T & |
item | ) |
|
|
inline |
◆ reset()
Reset the queue to its initialstate (except for the capacity) and remove all enqueued items.
◆ size()
Get the current size of the queue.
- Returns
- Queue size.
The documentation for this class was generated from the following files: