Public Types |
Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE > Class Template Reference
A basic wrapper for the MiniLib queue's as Template queue. More...
#include <mn_queue.hpp>
Collaboration diagram for mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >:
Public Types | |
using | queue_type = mn::queue::queue_t |
using | value_type = T |
using | pointer = T * |
using | reference = T & |
using | const_reference = const T & |
using | self_type = basic_queue< T, TMAXITEMS, TITEMSIZE > |
using | iterator = basic_queue_iterator< T, queue_type > |
using | const_iterator = const iterator |
using | size_type = mn::size_t |
Public Member Functions | |
basic_queue () | |
Construct a new basic queue object. More... | |
basic_queue (const self_type &other) | |
~basic_queue () | |
Destroy the basic queue object. More... | |
iterator | begin () |
Get the begin iterator. More... | |
iterator | end () |
Get the end iterator. More... | |
const_iterator | begin () const |
Get the begin iterator. More... | |
const_iterator | end () const |
Get the end iterator. More... | |
const_reference | front () const |
reference | front () |
const_reference | back () const |
reference | back () |
void | push (reference _Element) |
Push a element to the queue. More... | |
pointer | pop () |
Pop the oldest entry from the queue. More... | |
void | clear () |
Clear the queue. More... | |
bool | empty () |
Check, if queue is empty. More... | |
mn::size_t | length () |
How many items can queue. More... | |
mn::size_t | size () |
mn::size_t | left () |
void | swap (const self_type &other) |
self_type & | operator= (const self_type &other) |
Private Member Functions | |
T * | intern_getfront () |
Private Attributes | |
queue_type | m_queue |
pointer | m_pEnd |
pointer | m_pFront |
Detailed Description
template<class T, mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
class mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >
A basic wrapper for the MiniLib queue's as Template queue.
- Template Parameters
-
T The type of an element TMAXITEMS Maximal items can queue TITEMSIZE A size of a item
Member Typedef Documentation
◆ const_iterator
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::const_iterator = const iterator |
◆ const_reference
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::const_reference = const T& |
◆ iterator
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::iterator = basic_queue_iterator<T, queue_type> |
◆ pointer
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::pointer = T* |
◆ queue_type
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::queue_type = mn::queue::queue_t |
◆ reference
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::reference = T& |
◆ self_type
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::self_type = basic_queue<T, TMAXITEMS, TITEMSIZE> |
◆ size_type
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::size_type = mn::size_t |
◆ value_type
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
using mn::container::basic_queue< T, TMAXITEMS, TITEMSIZE >::value_type = T |
Constructor & Destructor Documentation
◆ basic_queue() [1/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Construct a new basic queue object.
◆ basic_queue() [2/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
◆ ~basic_queue()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Destroy the basic queue object.
Member Function Documentation
◆ back() [1/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
◆ back() [2/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
◆ begin() [1/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Get the begin iterator.
- Returns
- The begin iterator
◆ begin() [2/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Get the begin iterator.
- Returns
- The begin iterator
◆ clear()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Clear the queue.
◆ empty()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Check, if queue is empty.
- Returns
- true The queue is empty and false when not
◆ end() [1/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Get the end iterator.
- Returns
- The end iterator
◆ end() [2/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Get the end iterator.
- Returns
- The end iterator
◆ front() [1/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
◆ front() [2/2]
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
◆ intern_getfront()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inlineprivate |
◆ left()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
How many empty spaves are currently left in the queue.
- Returns
- the number of remaining spaces.
◆ length()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
How many items can queue.
- Returns
- The maximal number of entries can queue
◆ operator=()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
◆ pop()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Pop the oldest entry from the queue.
- Returns
- The oldest entry from the queue
◆ push()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Push a element to the queue.
- Parameters
-
pElement The element
◆ size()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
How many items are currently in the queue.
- Returns
- the number of items in the queue.
◆ swap()
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
inline |
Member Data Documentation
◆ m_pEnd
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
private |
◆ m_pFront
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
private |
◆ m_queue
template<class T , mn::size_t TMAXITEMS, mn::size_t TITEMSIZE = sizeof(T)>
|
private |
The documentation for this class was generated from the following file: