#include <BoundedQueue.h>
Public Member Functions | |
| BoundedQueue (INDEX n) | |
| Pointer to first element of total array. | |
| BoundedQueue (const BoundedQueue< E > &Q) | |
| Constructs a bounded queue that is a copy of Q. | |
| ~BoundedQueue () | |
| const E & | top () const |
| Returns front element. | |
| E & | top () |
| Returns front element. | |
| const E & | bottom () const |
| Returns back element. | |
| E & | bottom () |
| Returns back element. | |
| INDEX | size () const |
| Returns current size of the queue. | |
| INDEX | capacity () const |
| Returns the capacity of the bounded queue. | |
| bool | empty () |
| Returns true iff the queue is empty. | |
| bool | full () |
| Returns true iff the queue is full. | |
| BoundedQueue< E > & | operator= (const BoundedQueue< E > &Q) |
| Assignment operator. | |
| void | append (const E &x) |
| Adds x at the end of queue. | |
| E | pop () |
| Removes front element and returns it. | |
| void | clear () |
| Makes the queue empty. | |
Private Member Functions | |
| void | copy (const BoundedQueue< E > &Q) |
Private Attributes | |
| E * | m_pStart |
| E * | m_pEnd |
| Pointer to first element of current sequence. | |
| E * | m_pStop |
| Pointer to one past last element of current sequence. | |
| E * | m_pFirst |
| Pointer to one past last element of total array. | |
Friends | |
| void | print (ostream &, const BoundedQueue< E, INDEX > &, char) |
Definition at line 71 of file BoundedQueue.h.
| ogdf::BoundedQueue< E, INDEX >::BoundedQueue | ( | INDEX | n | ) | [inline, explicit] |
Pointer to first element of total array.
Constructs an empty bounded queue for at most n elements.
Definition at line 82 of file BoundedQueue.h.
| ogdf::BoundedQueue< E, INDEX >::BoundedQueue | ( | const BoundedQueue< E > & | Q | ) | [inline] |
| ogdf::BoundedQueue< E, INDEX >::~BoundedQueue | ( | ) | [inline] |
Definition at line 96 of file BoundedQueue.h.
| const E& ogdf::BoundedQueue< E, INDEX >::top | ( | ) | const [inline] |
| E& ogdf::BoundedQueue< E, INDEX >::top | ( | ) | [inline] |
| const E& ogdf::BoundedQueue< E, INDEX >::bottom | ( | ) | const [inline] |
| E& ogdf::BoundedQueue< E, INDEX >::bottom | ( | ) | [inline] |
| INDEX ogdf::BoundedQueue< E, INDEX >::size | ( | ) | const [inline] |
| INDEX ogdf::BoundedQueue< E, INDEX >::capacity | ( | ) | const [inline] |
| bool ogdf::BoundedQueue< E, INDEX >::empty | ( | ) | [inline] |
| bool ogdf::BoundedQueue< E, INDEX >::full | ( | ) | [inline] |
| BoundedQueue<E>& ogdf::BoundedQueue< E, INDEX >::operator= | ( | const BoundedQueue< E > & | Q | ) | [inline] |
| void ogdf::BoundedQueue< E, INDEX >::append | ( | const E & | x | ) | [inline] |
| E ogdf::BoundedQueue< E, INDEX >::pop | ( | ) | [inline] |
| void ogdf::BoundedQueue< E, INDEX >::clear | ( | ) | [inline] |
| void ogdf::BoundedQueue< E, INDEX >::copy | ( | const BoundedQueue< E > & | Q | ) | [inline, private] |
Definition at line 171 of file BoundedQueue.h.
| void print | ( | ostream & | os, | |
| const BoundedQueue< E, INDEX > & | S, | |||
| char | delim = ' ' | |||
| ) | [friend] |
E* ogdf::BoundedQueue< E, INDEX >::m_pStart [private] |
Definition at line 75 of file BoundedQueue.h.
E* ogdf::BoundedQueue< E, INDEX >::m_pEnd [private] |
E* ogdf::BoundedQueue< E, INDEX >::m_pStop [private] |
E* ogdf::BoundedQueue< E, INDEX >::m_pFirst [private] |