Eneboo - Documentación para desarrolladores
|
#include <qptrqueue.h>
Métodos públicos | |
QPtrQueue () | |
QPtrQueue (const QPtrQueue< type > &q) | |
~QPtrQueue () | |
QPtrQueue< type > & | operator= (const QPtrQueue< type > &q) |
bool | autoDelete () const |
void | setAutoDelete (bool del) |
uint | count () const |
bool | isEmpty () const |
void | enqueue (const type *d) |
type * | dequeue () |
bool | remove () |
void | clear () |
type * | head () const |
operator type * () const | |
type * | current () const |
QPtrQueue () | |
QPtrQueue (const QPtrQueue< type > &q) | |
~QPtrQueue () | |
QPtrQueue< type > & | operator= (const QPtrQueue< type > &q) |
bool | autoDelete () const |
void | setAutoDelete (bool del) |
uint | count () const |
bool | isEmpty () const |
void | enqueue (const type *d) |
type * | dequeue () |
bool | remove () |
void | clear () |
type * | head () 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.
QPtrQueue<type>& QPtrQueue< type >::operator= | ( | const QPtrQueue< type > & | q | ) | [inline] |
QPtrQueue<type>& QPtrQueue< type >::operator= | ( | const QPtrQueue< type > & | q | ) | [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.