#include <oscl_queue.h>
Inheritance diagram for Oscl_Queue< T, Alloc >:
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef const T & | const_reference |
typedef uint32 | size_type |
Public Methods | |
Oscl_Queue () | |
Oscl_Queue (uint32 n) | |
virtual | ~Oscl_Queue () |
void | push (const T &x) |
reference | front () |
const_reference | front () const |
void | pop () |
reference | back () |
const_reference | back () const |
void | clear () |
|
|
|
|
|
|
|
|
|
|
|
Creates an empty queue. |
|
Creates an empty queue with capacity n.
|
|
The destructor. |
|
Returns the last element (const) |
|
Returns the last element: "back" (generally not too useful, but some debugging aids might want to find out what was just added) |
|
Removes all elements. Reimplemented from Oscl_Queue_Base. |
|
Returns the first element (const) |
|
Returns the first element. Reimplemented from Oscl_Queue_Base. |
|
Removes the first element Reimplemented from Oscl_Queue_Base. |
|
Inserts a new element at the end. Queue will be grown if necessary. If allocation fails, an OSCL_LEAVE will occur
|