|
STXXL
1.4-dev
|
An internal fifo queue that allows removing elements addressed with (a copy of) themselves.
| KeyType | Type of contained elements. |
Definition at line 28 of file addressable_queues.h.
Inheritance diagram for stxxl::addressable_fifo_queue< KeyType >:Public Types | |
| typedef meta_iterator | handle |
| Type of handle to an entry. For use with insert and remove. More... | |
Public Member Functions | |
| addressable_fifo_queue () | |
| Create an empty queue. More... | |
| ~addressable_fifo_queue () | |
| bool | empty () const |
| Check if queue is empty. More... | |
| bool | erase (const KeyType &e) |
| Erase element from the queue. More... | |
| void | erase (handle i) |
| Erase element from the queue. More... | |
| std::pair< handle, bool > | insert (const KeyType &e) |
| Insert new element. If the element is already in, it is moved to the back. More... | |
| KeyType | pop () |
| Remove top element from the queue. More... | |
| const KeyType & | top () const |
| Access top element in the queue. More... | |
Private Types | |
| typedef container_type::iterator | container_iterator |
| typedef std::list< KeyType > | container_type |
| typedef meta_type::iterator | meta_iterator |
| typedef std::map< KeyType, container_iterator > | meta_type |
Private Attributes | |
| meta_type | meta |
| container_type | vals |
|
private |
Definition at line 31 of file addressable_queues.h.
|
private |
Definition at line 30 of file addressable_queues.h.
| typedef meta_iterator stxxl::addressable_fifo_queue< KeyType >::handle |
Type of handle to an entry. For use with insert and remove.
Definition at line 40 of file addressable_queues.h.
|
private |
Definition at line 33 of file addressable_queues.h.
|
private |
Definition at line 32 of file addressable_queues.h.
|
inline |
Create an empty queue.
Definition at line 43 of file addressable_queues.h.
|
inline |
Definition at line 44 of file addressable_queues.h.
|
inline |
Check if queue is empty.
Definition at line 48 of file addressable_queues.h.
|
inline |
Erase element from the queue.
| e | Element to remove. |
Definition at line 72 of file addressable_queues.h.
|
inline |
Erase element from the queue.
| i | Iterator to element to remove. |
Definition at line 84 of file addressable_queues.h.
|
inline |
Insert new element. If the element is already in, it is moved to the back.
| e | Element to insert. |
Definition at line 56 of file addressable_queues.h.
|
inline |
Remove top element from the queue.
Definition at line 97 of file addressable_queues.h.
|
inline |
Access top element in the queue.
Definition at line 92 of file addressable_queues.h.
|
private |
Definition at line 36 of file addressable_queues.h.
|
private |
Definition at line 35 of file addressable_queues.h.