|
Open Model Railroad Network (OpenMRN)
|
A simple, fast, type-safe single-linked queue class with non-virtual methods. More...
#include <SimpleQueue.hxx>
Public Types | |
| typedef typed_iterator< T > | iterator |
| Typed iterator type. | |
Public Member Functions | |
| void | push_front (T *entry) |
| Inserts an entry to the front of the queue. | |
| T * | pop_front () |
| Removes the entry at the front of the queue. | |
| T * | front () const |
| peeks. | |
| iterator | begin () |
Public Member Functions inherited from SimpleQueue | |
| bool | empty () |
| void | push_front (QMember *member) |
| Adds an entry to the front of the queue. | |
| QMember * | pop_front () |
| Removes the entry at the front of the queue. | |
| QMember * | front () const |
| peeks. | |
| iterator | begin () |
| end_iterator | end () |
| void | insert (const iterator &position, QMember *entry) |
| Inserts the element entry before the position. | |
| void | erase (const iterator &position) |
| Removes the entry pointed to by the iterator. | |
Additional Inherited Members | |
Protected Attributes inherited from SimpleQueue | |
| QMember * | head_ |
| Top pointer for the stack. | |
Static Protected Attributes inherited from SimpleQueue | |
| static QMember *const | PTR_END = nullptr |
| Used as a guard for comparing against for the end of the queue. | |
A simple, fast, type-safe single-linked queue class with non-virtual methods.
see SimpleQueue for details.
Definition at line 192 of file SimpleQueue.hxx.
| typedef typed_iterator<T> TypedQueue< T >::iterator |
Typed iterator type.
Definition at line 211 of file SimpleQueue.hxx.
|
inline |
Definition at line 214 of file SimpleQueue.hxx.
|
inline |
|
inline |
Removes the entry at the front of the queue.
Definition at line 201 of file SimpleQueue.hxx.
|
inline |
Inserts an entry to the front of the queue.
Definition at line 195 of file SimpleQueue.hxx.