An internal fifo queue that allows removing elements addressed with (a copy of) themselves. More...
#include <addressable_queues.h>

Public Types | |
| typedef meta_iter_t | handle |
| Type of handle to an entry. For use with insert and remove. | |
Public Member Functions | |
| addressable_fifo_queue () | |
| Create an empty queue. | |
| bool | empty () const |
| Check if queue is empty. | |
| std::pair< handle, bool > | insert (const KeyType &e) |
| Insert new element. If the element is already in, it is moved to the back. | |
| bool | erase (const KeyType &e) |
| Erase element from the queue. | |
| void | erase (handle i) |
| Erase element from the queue. | |
| const KeyType & | top () const |
| Access top element in the queue. | |
| KeyType | pop () |
| Remove top element from the queue. | |
An internal fifo queue that allows removing elements addressed with (a copy of) themselves.
| KeyType | Type of contained elements. |
| typedef meta_iter_t addressable_fifo_queue< KeyType >::handle |
Type of handle to an entry. For use with insert and remove.
| addressable_fifo_queue< KeyType >::addressable_fifo_queue | ( | ) | [inline] |
Create an empty queue.
| bool addressable_fifo_queue< KeyType >::empty | ( | ) | const [inline] |
Check if queue is empty.
Referenced by addressable_fifo_queue< swappable_block_identifier_type >::pop().
| void addressable_fifo_queue< KeyType >::erase | ( | handle | i | ) | [inline] |
Erase element from the queue.
| i | Iterator to element to remove. |
| bool addressable_fifo_queue< KeyType >::erase | ( | const KeyType & | e | ) | [inline] |
Erase element from the queue.
| e | Element to remove. |
| std::pair<handle, bool> addressable_fifo_queue< KeyType >::insert | ( | const KeyType & | e | ) | [inline] |
Insert new element. If the element is already in, it is moved to the back.
| e | Element to insert. |
| KeyType addressable_fifo_queue< KeyType >::pop | ( | ) | [inline] |
Remove top element from the queue.
| const KeyType& addressable_fifo_queue< KeyType >::top | ( | ) | const [inline] |
Access top element in the queue.
Referenced by addressable_fifo_queue< swappable_block_identifier_type >::pop().
1.7.1