#include <qstack.h>
Public Member Functions | |
QStack () | |
QStack (const QStack< type > &s) | |
~QStack () | |
QStack< type > & | operator= (const QStack< type > &s) |
bool | autoDelete () const |
void | setAutoDelete (bool del) |
uint | count () const |
bool | isEmpty () const |
void | push (const type *d) |
type * | pop () |
bool | remove () |
void | clear () |
type * | bottom () const |
type * | top () const |
operator type * () const | |
type * | current () const |
Additional Inherited Members | |
Private Types inherited from QCollection | |
typedef void * | Item |
Private Attributes inherited from QCollection | |
bool | del_item |
Definition at line 62 of file qstack.h.
Removes all objects from the collection. The objects will be deleted if auto-delete has been enabled.
Reimplemented from QGList.
Definition at line 61 of file qstack.h.
Definition at line 65 of file qstack.h.
Virtual function that deletes an item that is about to be removed from the collection.
The default implementation deletes d pointer if and only if auto-delete has been enabled.
This function is always reimplemented in the collection template classes.
Reimplemented from QCollection.
Definition at line 67 of file qstack.h.
Definition at line 64 of file qstack.h.
Definition at line 52 of file qstack.h.
Definition at line 59 of file qstack.h.
Definition at line 63 of file qstack.h.