5 #include <libutl/Deque.h> 23 template <
class T = Object>
43 return utl::cast<T>(Deque::popFront());
55 return Deque::pushBack(const_cast<T&>(
object));
65 return Deque::pushBack(const_cast<T*>(
object));
#define UTL_CLASS_IMPL_TPL(className, T)
Implementation of standard UTL++ functionality for a template class.
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
bool enQ(const T *object)
Add the given object to the end of the queue.
FIFO (first-in, first-out) data structure.
Template version of Deque.
T * deQ()
Return the object at the head of the queue.
#define UTL_CLASS_DECL_TPL(DC, T, BC)
Declaration of standard UTL++ functionality for a template class with one parameter.
Queue(bool owner)
Constructor.
bool enQ(const T &object)
Add the given object to the end of the queue.