17 #ifndef _DECAF_UTIL_QUEUE_H_
18 #define _DECAF_UTIL_QUEUE_H_
76 virtual bool offer(
const E& value) = 0;
90 virtual bool poll(E& result) = 0;
101 virtual E
remove() = 0;
113 virtual bool peek(E& result)
const = 0;
The root interface in the collection hierarchy.
Definition: Collection.h:68
virtual bool peek(E &result) const =0
Gets but not removes the element in the head of the queue.
virtual E element() const =0
Gets but not removes the element in the head of the queue.
A kind of collection provides advanced operations than other basic collections, such as insertion...
Definition: Queue.h:55
virtual bool offer(const E &value)=0
Inserts the specified element into the queue provided that the condition allows such an operation...
virtual bool poll(E &result)=0
Gets and removes the element in the head of the queue.
virtual ~Queue()
Definition: Queue.h:58