Home | History | Annotate | Download | only in samples

Lines Matching defs:QueueNode

46 // QueueNode is a node in a Queue, which consists of an element of
49 class QueueNode {
57 QueueNode* next() { return next_; }
58 const QueueNode* next() const { return next_; }
63 explicit QueueNode(const E& an_element) : element_(an_element), next_(NULL) {}
66 const QueueNode& operator = (const QueueNode&);
67 QueueNode(const QueueNode&);
70 QueueNode* next_;
86 QueueNode<E>* node = head_;
87 QueueNode<E>* next = node->next();
105 QueueNode<E>* Head() { return head_; }
106 const QueueNode<E>* Head() const { return head_; }
109 QueueNode<E>* Last() { return last_; }
110 const QueueNode<E>* Last() const { return last_; }
117 QueueNode<E>* new_node = new QueueNode<E>(element);
136 const QueueNode<E>* const old_head = head_;
155 for (const QueueNode<E>* node = head_; node != NULL; node = node->next_) {
163 QueueNode<E>* head_; // The first node of the queue.
164 QueueNode<E>* last_; // The last node of the queue.