TDeque is a double ended queue. More...
#include <tdeque.h>

Public Member Functions | |
| TDeque () | |
| Default constructor. | |
| TDeque (const TDeque< T > &) | |
| Copy constructor. | |
| ~TDeque () | |
| Destructor. | |
| TDeque< T > & | operator= (const TDeque< T > &) |
| Assignment operator. | |
| bool | pushLeft (const T &) |
| Push item into queue left. | |
| bool | pushRight (const T &) |
| Push item into queue right. | |
| T | popLeft () |
| Pop item from queue left. | |
| T | popRight () |
| Pop item from queue right. | |
| const T & | peekLeft () const |
| Return copy of left item. | |
| const T & | peekRight () const |
| Return copy of right item. | |
TDeque is a double ended queue.
Items can be pushed or popped to the left and right end of the queue.
| TDeque | ( | ) | [inline] |
Default constructor.
Copy constructor.
| [in] | deque | Deque to copy. |
| ~TDeque | ( | ) | [inline] |
Destructor.
Assignment operator.
| [in] | deque | Assign left side (this) to deque. |
Reimplemented from TLinkedList< T >.
| bool pushLeft | ( | const T & | obj | ) | [inline] |
Push item into queue left.
| [in] | obj | Item to push on left side. |
| bool pushRight | ( | const T & | obj | ) | [inline] |
Push item into queue right.
| [in] | obj | Item to push on right side. |
| T popLeft | ( | ) | [inline] |
Pop item from queue left.
| T popRight | ( | ) | [inline] |
Pop item from queue right.
| const T & peekLeft | ( | ) | const [inline] |
Return copy of left item.
| const T & peekRight | ( | ) | const [inline] |
Return copy of right item.