QQueue Class Reference


The QQueue class is a template class that provides a queue. More...

#include <qqueue.h>

List of all member functions.

Public Members


Detailed Description

The QQueue class is a template class that provides a queue.

QQueue is implemented as both a template and a macro class. Define a template instance QQueue<X> to create a queue that operates on pointers to X, or X*.

A stack is a collection that can be used to enqueue and deqeue items.

See also: Collection Classes


Member Function Documentation

bool QCollection::autoDelete () const

Returns the setting of the auto-delete option (default is FALSE).

See also: setAutoDelete().

void QCollection::setAutoDelete ( bool enable)

Sets the auto-delete option of the collection.

Enabling auto-delete (enable is TRUE) will delete objects that are removed from the collection. This can be useful if the collection has the only reference to the objects.

Disabling auto-delete (enable is FALSE) will not delete objects that are removed from the collection. This is useful if the objects are part of many collections.

The default setting is FALSE.

See also: autoDelete().

void QGList::clear () [virtual]

For internal use only.

Reimplemented from QCollection.

uint QGList::count () const [virtual]

For internal use only.

Reimplemented from QCollection.


This file is part of the Qt toolkit, copyright © 1995-96 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 16:51, 1996/09/24 for Qt version 1.0 by the webmaster at Troll Tech