ocean.util.container.queue.model.IUntypedQueue

An interface for a FIFO queue with items of unspecified type.

This interface is deliberately designed to be as minimal as possible, only covering the core functionality shared by the wide variety of possible queue implementations. For example, even a basic pop function which returns an item is not generic -- certain implementations may need to relinquish the item after popping it, making a simple pop-then-return implementation impossible. For this reason, some additional helper functions are provided, which may be useful with some queue implementations.

Members

Functions

pop
bool pop(IUntypedQueue q, void[] t)

A helper function to pop from IUntypedQueue.

push
bool push(IUntypedQueue q, void[] t)

A helper function to push into IUntypedQueue.

Interfaces

IUntypedQueue
interface IUntypedQueue

An interface for a FIFO queue with items of unspecified type (opaque chunks of data).

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).