107 return prevCurrent->value;
137 prev->
next = nextNode;
ClearQueue(ClearQueue const &)=delete
Deleted copy constructor to prevent copying.
T hardPop()
Removes and returns the element at the front of the queue.
Definition ClearQueue.h:221
struct ClearQueue::node * pnode
Node structure for the linked list implementation.
pnode mTail
Pointer to the last node in the queue.
Definition ClearQueue.h:182
pnode mHead
Pointer to the first node in the queue.
Definition ClearQueue.h:181
Definition IterableQueue.h:36
const T & next() const
Move to the next element and return the current element.
Definition IterableQueue.h:104
void begin() const
Initialize the iterator to the beginning of the queue.
Definition IterableQueue.h:94
bool isEnd() const
Check if the iterator has reached the end of the queue.
Definition IterableQueue.h:99
ClearQueue< T >::pnode mCurrent
Pointer to the current node during iteration.
Definition IterableQueue.h:89
const T & current() const
Access the current element without moving the iterator.
Definition IterableQueue.h:111
bool deleteCurrent()
Remove the current element from the queue.
Definition IterableQueue.h:116
node * next
Pointer to the next node.
Definition ClearQueue.h:178