FIFO queue adapter backed by RADRingBuffer.
More...
#include <RADDataStructures.h>
|
| | RADQueue (size_t capacity=16) |
| | Creates a queue with initial ring capacity. More...
|
| |
| bool | empty () const noexcept |
| | Returns true when the queue is empty. More...
|
| |
| size_t | size () const noexcept |
| | Returns number of queued elements. More...
|
| |
| T & | front () noexcept |
| | Returns the front element. More...
|
| |
| const T & | front () const noexcept |
| | Returns the front element. More...
|
| |
| void | push (const T &value) |
| | Pushes a copy at the back. More...
|
| |
| void | push (T &&value) |
| | Pushes a moved value at the back. More...
|
| |
| template<typename... Args> |
| T & | emplace (Args &&... args) |
| | Constructs an element at the back. More...
|
| |
| void | pop () |
| | Removes the front element. More...
|
| |
| void | clear () |
| | Removes all queued elements. More...
|
| |
template<typename T, typename Alloc = std::allocator<T>>
class RADData::RADQueue< T, Alloc >
FIFO queue adapter backed by RADRingBuffer.
◆ RADQueue()
template<typename T , typename Alloc = std::allocator<T>>
Creates a queue with initial ring capacity.
◆ clear()
template<typename T , typename Alloc = std::allocator<T>>
Removes all queued elements.
◆ emplace()
template<typename T , typename Alloc = std::allocator<T>>
template<typename... Args>
Constructs an element at the back.
◆ empty()
template<typename T , typename Alloc = std::allocator<T>>
Returns true when the queue is empty.
◆ front() [1/2]
template<typename T , typename Alloc = std::allocator<T>>
Returns the front element.
◆ front() [2/2]
template<typename T , typename Alloc = std::allocator<T>>
Returns the front element.
◆ pop()
template<typename T , typename Alloc = std::allocator<T>>
Removes the front element.
◆ push() [1/2]
template<typename T , typename Alloc = std::allocator<T>>
Pushes a copy at the back.
◆ push() [2/2]
template<typename T , typename Alloc = std::allocator<T>>
Pushes a moved value at the back.
◆ size()
template<typename T , typename Alloc = std::allocator<T>>
Returns number of queued elements.
The documentation for this class was generated from the following file: