Double ended queue. More...
#include <include/EST_TDeque.h>
Public Member Functions | |
EST_TDeque (unsigned int capacity, unsigned int increment) | |
EST_TDeque (unsigned int capacity) | |
EST_TDeque (void) | |
void | clear (void) |
Empty it out. More... | |
bool | is_empty (void) const |
Is there anything to get? More... | |
std::ostream & | print (std::ostream &s) const |
print picture of state. Mostly useful for debugging. More... | |
stack | |
An interface looking like a stack. | |
void | push (T &item) |
T & | pop (void) |
T & | nth (int i) |
inverse stack | |
The other end as a stack. | |
void | back_push (T &item) |
T & | back_pop (void) |
queue | |
An interface looking like a queue. | |
void | add (T &item) |
T & | next () |
T & | last () |
perl | |
For people who think in perl | |
void | unshift (T &item) |
T & | shift () |
Static Public Attributes | |
static const T * | Filler |
Used to fill empty spaces when possible. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &st, const EST_TDeque< T > &deq) |
Double ended queue.
Definition at line 49 of file EST_TDeque.h.
EST_TDeque< T >::EST_TDeque | ( | unsigned int | capacity, |
unsigned int | increment | ||
) |
Definition at line 48 of file EST_TDeque.cc.
EST_TDeque< T >::EST_TDeque | ( | unsigned int | capacity | ) |
Definition at line 57 of file EST_TDeque.cc.
EST_TDeque< T >::EST_TDeque | ( | void | ) |
Definition at line 66 of file EST_TDeque.cc.
void EST_TDeque< T >::clear | ( | void | ) |
Empty it out.
Definition at line 140 of file EST_TDeque.cc.
bool EST_TDeque< T >::is_empty | ( | void | ) | const |
Is there anything to get?
Definition at line 134 of file EST_TDeque.cc.
ostream & EST_TDeque< T >::print | ( | std::ostream & | s | ) | const |
print picture of state. Mostly useful for debugging.
Definition at line 76 of file EST_TDeque.cc.
void EST_TDeque< T >::push | ( | T & | item | ) |
Definition at line 148 of file EST_TDeque.cc.
T & EST_TDeque< T >::pop | ( | void | ) |
Definition at line 167 of file EST_TDeque.cc.
T & EST_TDeque< T >::nth | ( | int | i | ) |
Definition at line 180 of file EST_TDeque.cc.
void EST_TDeque< T >::back_push | ( | T & | item | ) |
Definition at line 204 of file EST_TDeque.cc.
T & EST_TDeque< T >::back_pop | ( | void | ) |
Definition at line 223 of file EST_TDeque.cc.
|
inline |
Definition at line 100 of file EST_TDeque.h.
|
inline |
Definition at line 101 of file EST_TDeque.h.
|
inline |
Definition at line 102 of file EST_TDeque.h.
|
inline |
Definition at line 110 of file EST_TDeque.h.
|
inline |
Definition at line 111 of file EST_TDeque.h.
|
friend |
Definition at line 114 of file EST_TDeque.h.
|
static |
Used to fill empty spaces when possible.
Definition at line 65 of file EST_TDeque.h.