QStack Class Reference


The QStack class is a template class that provides a stack. More...

#include <qstack.h>

List of all member functions.

Public Members


Detailed Description

The QStack class is a template class that provides a stack.

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

A stack is a collection that can be used to push and pop 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-97 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 17:29, 1997/04/07 for Qt version 1.2 by the webmaster at Troll Tech