class queue

A FIFO queue

Inheritance:


Public Methods

[more] queue()
Creates an empty queue
[more]inline unsigned getSize()
Returns the length of the queue
[more]inline unsigned getLength()
Returns the length of the queue
[more]void add(object* item)
Adds an item to the end of the queue
[more]object* remove()
Removes and then returns the first item in the queue.
[more]void empty()
Deletes all objects in the queue and sets length to 0
[more] ~queue()


Inherited from object:

Public Methods

ovirtual bool operator==(const object &obj) const
ovirtual bool operator!=(const object &obj) const
ovirtual unsigned int hashcode() const
ovirtual object* clone() const


Documentation

A FIFO queue
o queue()
Creates an empty queue

oinline unsigned getSize()
Returns the length of the queue

oinline unsigned getLength()
Returns the length of the queue

ovoid add(object* item)
Adds an item to the end of the queue

oobject* remove()
Removes and then returns the first item in the queue. Returns NULL if the queue is empty.

ovoid empty()
Deletes all objects in the queue and sets length to 0

o ~queue()

oobject* item


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.