Sese Framework
2.3.0
A cross-platform framework
|
Ring queue. More...
#include <RingQueue.h>
Public Member Functions | |
T & | front () |
void | pop () |
void | push (const T &data) |
bool | empty () const |
Is the queue empty. | |
bool | full () const |
Is the queue full. | |
size_t | size () const |
Get queue size. | |
Private Attributes | |
T | _data [N] |
size_t | _head {} |
size_t | _tail {} |
size_t | _size {} |
Ring queue.
T | Element type |
N | Queue size |
|
inlinenodiscard |
Is the queue empty.
References sese::RingQueue< T, N >::_size.
Referenced by sese::RingQueue< T, N >::front(), and sese::RingQueue< T, N >::pop().
|
inline |
std::out_of_range | queue is empty |
References sese::RingQueue< T, N >::_data, sese::RingQueue< T, N >::_head, and sese::RingQueue< T, N >::empty().
|
inlinenodiscard |
Is the queue full.
References sese::RingQueue< T, N >::_size.
Referenced by sese::RingQueue< T, N >::push().
|
inline |
std::out_of_range | queue is empty |
References sese::RingQueue< T, N >::_head, sese::RingQueue< T, N >::_size, and sese::RingQueue< T, N >::empty().
|
inline |
std::out_of_range | queue is full |
References sese::RingQueue< T, N >::_data, sese::RingQueue< T, N >::_size, sese::RingQueue< T, N >::_tail, and sese::RingQueue< T, N >::full().
|
inlinenodiscard |
Get queue size.
References sese::RingQueue< T, N >::_size.
|
private |
Referenced by sese::RingQueue< T, N >::front(), and sese::RingQueue< T, N >::push().
|
private |
Referenced by sese::RingQueue< T, N >::front(), and sese::RingQueue< T, N >::pop().
|
private |
|
private |
Referenced by sese::RingQueue< T, N >::push().