A FIFO queue
Inheritance:
Public Methods
-
queue()
- Creates an empty queue
-
inline unsigned getSize()
- Returns the length of the queue
-
inline unsigned getLength()
- Returns the length of the queue
-
void add(object* item)
- Adds an item to the end of the queue
-
object* remove()
- Removes and then returns the first item in the queue.
-
void empty()
- Deletes all objects in the queue and sets length to 0
-
~queue()
Inherited from object:
Public Methods
-
virtual bool operator==(const object &obj) const
-
virtual bool operator!=(const object &obj) const
-
virtual unsigned int hashcode() const
-
virtual object* clone() const
Documentation
A FIFO queue
queue()
- Creates an empty queue
inline unsigned getSize()
- Returns the length of the queue
inline unsigned getLength()
- Returns the length of the queue
void add(object* item)
- Adds an item to the end of the queue
object* remove()
-
Removes and then returns the first item in the queue.
Returns NULL if the queue is empty.
void empty()
- Deletes all objects in the queue and sets length to 0
~queue()
object* item
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.