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;
113 virtual bool peek(E& result)
const = 0;
The root interface in the collection hierarchy.
Definition Collection.h:69
A kind of collection provides advanced operations than other basic collections, such as insertion,...
Definition Queue.h:55
virtual bool peek(E &result) const =0
Gets but not removes the element in the head of the queue.
virtual bool poll(E &result)=0
Gets and removes the element in the head of the queue.
virtual E remove()=0
Gets and 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.
virtual ~Queue()
Definition Queue.h:58
virtual bool offer(const E &value)=0
Inserts the specified element into the queue provided that the condition allows such an operation.
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25