Constructor/destructor operations
Function | Parameter(s) | Return value |
---|---|---|
Queue() | none | pointer to the newly allocated queue |
Queue() is the parameterless constructor that is responsible for creating a new instance of a queue.
Overloaded constructor that will accept an initial integer value to be assigned to the newly allocated Queue's value member.
Function | Parameter(s) | Return value |
---|---|---|
Queue(int) | integer value to assign as Queue's initial value | pointer to the newly allocated queue |
Operations that deal with queue manipulation
enqueue(int value) - add a value to the start of the queue
Function | Parameter(s) | Return value |
---|---|---|
bool enqueue() | integer | bool |
dequeue() - remove a node (LNode) from the end of the queue
Function | Parameter(s) | Return value |
---|---|---|
LNode dequeue() | integer | bool |
peek() - view the next value in the queue
Function | Parameter(s) | Return value |
---|---|---|
LNode * Queue :: peek(int value) | void | void |