Zen
A cross-platform functional programming language

queue< V > Class Template Reference

Intrinsic queue type. More...

#include <zbl.hpp>

Inheritance diagram for queue< V >:
listbase< queue< V >, QQueue< V >, QListIterator< V >, V > containerbase< QQueue< V > >

List of all members.

Public Types

typedef listbase< queue< V >
, QQueue< V >, QListIterator
< V >, V > 
baseT
 The base class type.

Public Member Functions

V & head ()
 Return the first item in the queue.
void enque (const V &v)
 Enqueue an item on the queue.
deque ()
 Dequeue a value from the queue.

Detailed Description

template<typename V>
class z::queue< V >

Intrinsic queue type.


Member Function Documentation

V deque ( ) [inline]

Dequeue a value from the queue.

Returns:
Value that was dequeued.
void enque ( const V &  v) [inline]

Enqueue an item on the queue.

Parameters:
vValue to enqueue
V& head ( ) [inline]

Return the first item in the queue.

Returns:
Reference to first item in the queue

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines