Eneboo - Documentación para desarrolladores
|
#include <qptrstack.h>
Métodos públicos | |
QPtrStack () | |
QPtrStack (const QPtrStack< type > &s) | |
~QPtrStack () | |
QPtrStack< type > & | operator= (const QPtrStack< 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 * | top () const |
operator type * () const | |
type * | current () const |
QPtrStack () | |
QPtrStack (const QPtrStack< type > &s) | |
~QPtrStack () | |
QPtrStack< type > & | operator= (const QPtrStack< 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 * | top () const |
operator type * () const | |
type * | current () const |
Returns the setting of the auto-delete option. The default is FALSE.
Reimplementado de QPtrCollection.
Returns the setting of the auto-delete option. The default is FALSE.
Reimplementado de QPtrCollection.
Removes all items from the list.
Reimplementado de QGList.
Removes all items from the list.
Reimplementado de QGList.
Returns the number of items in the list.
Reimplementado de QGList.
Returns the number of items in the list.
Reimplementado de QGList.
QPtrStack<type>& QPtrStack< type >::operator= | ( | const QPtrStack< type > & | s | ) | [inline] |
QPtrStack<type>& QPtrStack< type >::operator= | ( | const QPtrStack< type > & | s | ) | [inline] |
Sets the collection to auto-delete its contents if enable is TRUE and to never delete them if enable is FALSE.
If auto-deleting is turned on, all the items in a collection are deleted when the collection itself is deleted. This is convenient if the collection has the only pointer to the items.
The default setting is FALSE, for safety. If you turn it on, be careful about copying the collection - you might find yourself with two collections deleting the same items.
Note that the auto-delete setting may also affect other functions in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.
Reimplementado de QPtrCollection.
Sets the collection to auto-delete its contents if enable is TRUE and to never delete them if enable is FALSE.
If auto-deleting is turned on, all the items in a collection are deleted when the collection itself is deleted. This is convenient if the collection has the only pointer to the items.
The default setting is FALSE, for safety. If you turn it on, be careful about copying the collection - you might find yourself with two collections deleting the same items.
Note that the auto-delete setting may also affect other functions in subclasses. For example, a subclass that has a remove() function will remove the item from its data structure, and if auto-delete is enabled, will also delete the item.
Reimplementado de QPtrCollection.