container/mn_queue.hpp
Go to the documentation of this file.
Definition: container/mn_queue.hpp:28
value_type * pointer
Definition: container/mn_queue.hpp:32
TQUEUE queue_type
Definition: container/mn_queue.hpp:36
pointer operator->() const
Definition: container/mn_queue.hpp:53
self_type & operator++()
Definition: container/mn_queue.hpp:55
value_type & reference
Definition: container/mn_queue.hpp:33
bool operator!=(const self_type &rhs) const
Definition: container/mn_queue.hpp:64
basic_queue_iterator(const basic_queue_iterator< U, UQUEUE > &rhs)
Definition: container/mn_queue.hpp:47
pointer * m_pValue
Definition: container/mn_queue.hpp:67
basic_queue_iterator(pointer_queue _pQueue, bool isEnd=false)
Definition: container/mn_queue.hpp:40
pointer_queue m_pQueue
Definition: container/mn_queue.hpp:68
TQUEUE * pointer_queue
Definition: container/mn_queue.hpp:38
ptrdiff_t difference_type
Definition: container/mn_queue.hpp:34
bool operator==(const self_type &rhs) const
Definition: container/mn_queue.hpp:61
self_type operator++(int)
Definition: container/mn_queue.hpp:58
reference operator*() const
Definition: container/mn_queue.hpp:52
basic_queue_iterator(pointer value, pointer_queue _pQueue, bool isEnd=false)
Definition: container/mn_queue.hpp:43
A basic wrapper for the MiniLib queue's as Template queue.
Definition: container/mn_queue.hpp:81
const T & const_reference
Definition: container/mn_queue.hpp:87
self_type & operator=(const self_type &other)
Definition: container/mn_queue.hpp:209
basic_queue()
Construct a new basic queue object.
Definition: container/mn_queue.hpp:96
mn::size_t length()
How many items can queue.
Definition: container/mn_queue.hpp:184
void push(reference _Element)
Push a element to the queue.
Definition: container/mn_queue.hpp:151
T * intern_getfront()
Definition: container/mn_queue.hpp:217
const_iterator end() const
Get the end iterator.
Definition: container/mn_queue.hpp:132
iterator end()
Get the end iterator.
Definition: container/mn_queue.hpp:117
basic_queue(const self_type &other)
Definition: container/mn_queue.hpp:98
basic_queue_iterator< T, queue_type > iterator
Definition: container/mn_queue.hpp:89
const_iterator begin() const
Get the begin iterator.
Definition: container/mn_queue.hpp:125
const_reference front() const
Definition: container/mn_queue.hpp:135
pointer pop()
Pop the oldest entry from the queue.
Definition: container/mn_queue.hpp:160
bool empty()
Check, if queue is empty.
Definition: container/mn_queue.hpp:177
~basic_queue()
Destroy the basic queue object.
Definition: container/mn_queue.hpp:104
iterator begin()
Get the begin iterator.
Definition: container/mn_queue.hpp:110
void swap(const self_type &other)
Definition: container/mn_queue.hpp:203
virtual int enqueue(void *item, unsigned int timeout=MN_THREAD_CONFIG_TIMEOUT_QUEUE_DEFAULT)
Definition: mn_queue.cpp:50
virtual unsigned int get_num_items()
Definition: mn_queue.cpp:117
virtual int peek(void *item, unsigned int timeout=MN_THREAD_CONFIG_TIMEOUT_QUEUE_DEFAULT)
Definition: mn_queue.cpp:86
virtual int dequeue(void *item, unsigned int timeout=MN_THREAD_CONFIG_TIMEOUT_QUEUE_DEFAULT)
Definition: mn_queue.cpp:68
#define MN_THREAD_CONFIG_TIMEOUT_QUEUE_DEFAULT
Definition: mn_config.hpp:387
struct mn::memory::detail::ptr_difference T
Definition: mn_atomic_singleton.hpp:38
Definition: mn_allocator_typetraits.hpp:25
Definition: mn_iterator.hpp:34