- A Logic Circuit Simulation Library in C++ |
#include <queue.h>
Public Member Functions | |
Queue (void) | |
Queue (const Queue< T > &q) | |
~Queue () | |
void | enQueue (T element) |
void | deQueue (void) |
T | getFirstInQueue (void) |
int | getSize (void) |
void | purge (void) |
void | operator= (Queue q) |
lcs::Queue< T >::Queue | ( | void | ) |
Default constructor.
lcs::Queue< T >::Queue | ( | const Queue< T > & | q | ) |
Copy constructor. This is only a shallow coppier. The new object and the original object will denote the same queue.
lcs::Queue< T >::~Queue | ( | ) |
Destructor.
void lcs::Queue< T >::deQueue | ( | void | ) |
Removes the first element from the queue.
void lcs::Queue< T >::enQueue | ( | T | element | ) |
Adds an element to the end of the queue.
element | The element to be added to the end of the queue. |
T lcs::Queue< T >::getFirstInQueue | ( | void | ) |
Returns the first element in the queue.
int lcs::Queue< T >::getSize | ( | void | ) | [inline] |
Returns the length of the queue.
void lcs::Queue< T >::operator= | ( | Queue< T > | q | ) |
The explicit assignment operator. The left lvalue and the rvalue will represent the same queue after the assignment.
void lcs::Queue< T >::purge | ( | void | ) |
Destroys the queue.