|
void | BlockTillEmpty (void) |
| Blocks until the queue is empty. More...
|
|
void | Clear (void) |
| Removes all Items from the Queue, calling Delete on each of them. More...
|
|
| cQueue () |
|
ItemType | DequeueItem (void) |
| Dequeues an item from the queue, blocking until an item is available. More...
|
|
void | EnqueueItem (ItemType a_Item) |
| Enqueues an item to the queue, may block if other threads are accessing the queue. More...
|
|
void | EnqueueItemIfNotPresent (ItemType a_Item) |
| Enqueues an item in the queue if not already present (as determined by operator ==). More...
|
|
bool | Remove (ItemType a_Item) |
| Removes the item from the queue. More...
|
|
template<class Predicate > |
void | RemoveIf (Predicate a_Predicate) |
| Removes all items for which the predicate returns true. More...
|
|
size_t | Size (void) |
| Returns the size at time of being called. More...
|
|
bool | TryDequeueItem (ItemType &item) |
| Dequeues an item from the queue if any are present. More...
|
|
| ~cQueue () |
|
template<class ItemType, class Funcs = cQueueFuncs<ItemType>>
class cQueue< ItemType, Funcs >
Definition at line 43 of file Queue.h.
template<class ItemType , class Funcs = cQueueFuncs<ItemType>>
void cQueue< ItemType, Funcs >::EnqueueItemIfNotPresent |
( |
ItemType |
a_Item | ) |
|
|
inline |
Enqueues an item in the queue if not already present (as determined by operator ==).
Blocks other threads from accessing the queue.
Definition at line 66 of file Queue.h.
template<class ItemType , class Funcs = cQueueFuncs<ItemType>>
bool cQueue< ItemType, Funcs >::Remove |
( |
ItemType |
a_Item | ) |
|
|
inline |
Removes the item from the queue.
If there are multiple such items, only the first one is removed. Returns true if the item has been removed, false if no such item found.
Definition at line 150 of file Queue.h.
template<class ItemType , class Funcs = cQueueFuncs<ItemType>>
bool cQueue< ItemType, Funcs >::TryDequeueItem |
( |
ItemType & |
item | ) |
|
|
inline |
Dequeues an item from the queue if any are present.
Returns true if successful. Value of item is undefined if dequeuing was unsuccessful.
Definition at line 85 of file Queue.h.