Eneboo - Documentación para desarrolladores
Métodos públicos
Referencia de la plantilla de la Clase QPtrStack< type >

#include <qptrstack.h>

Diagrama de herencias de QPtrStack< type >
QGList QGList QPtrCollection QPtrCollection QPtrCollection QPtrCollection

Lista de todos los miembros.

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)
typepop ()
bool remove ()
void clear ()
typetop () const
 operator type * () const
typecurrent () 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)
typepop ()
bool remove ()
void clear ()
typetop () const
 operator type * () const
typecurrent () const

template<class type>
class QPtrStack< type >


Documentación del constructor y destructor

template<class type>
QPtrStack< type >::QPtrStack ( ) [inline]
template<class type>
QPtrStack< type >::QPtrStack ( const QPtrStack< type > &  s) [inline]
template<class type>
QPtrStack< type >::~QPtrStack ( ) [inline]
template<class type>
QPtrStack< type >::QPtrStack ( ) [inline]
template<class type>
QPtrStack< type >::QPtrStack ( const QPtrStack< type > &  s) [inline]
template<class type>
QPtrStack< type >::~QPtrStack ( ) [inline]

Documentación de las funciones miembro

template<class type>
bool QPtrStack< type >::autoDelete ( ) const [inline]

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

Ver también:
setAutoDelete()

Reimplementado de QPtrCollection.

template<class type>
bool QPtrStack< type >::autoDelete ( ) const [inline]

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

Ver también:
setAutoDelete()

Reimplementado de QPtrCollection.

template<class type>
void QPtrStack< type >::clear ( void  ) [inline, virtual]

Removes all items from the list.

Reimplementado de QGList.

template<class type>
void QPtrStack< type >::clear ( void  ) [inline, virtual]

Removes all items from the list.

Reimplementado de QGList.

template<class type>
uint QPtrStack< type >::count ( ) const [inline, virtual]

Returns the number of items in the list.

Reimplementado de QGList.

template<class type>
uint QPtrStack< type >::count ( ) const [inline, virtual]

Returns the number of items in the list.

Reimplementado de QGList.

template<class type>
type* QPtrStack< type >::current ( ) const [inline]
template<class type>
type* QPtrStack< type >::current ( ) const [inline]
template<class type>
bool QPtrStack< type >::isEmpty ( void  ) const [inline]
template<class type>
bool QPtrStack< type >::isEmpty ( void  ) const [inline]
template<class type>
QPtrStack< type >::operator type * ( ) const [inline]
template<class type>
QPtrStack< type >::operator type * ( ) const [inline]
template<class type>
QPtrStack<type>& QPtrStack< type >::operator= ( const QPtrStack< type > &  s) [inline]
template<class type>
QPtrStack<type>& QPtrStack< type >::operator= ( const QPtrStack< type > &  s) [inline]
template<class type>
type* QPtrStack< type >::pop ( void  ) [inline]
template<class type>
type* QPtrStack< type >::pop ( void  ) [inline]
template<class type>
void QPtrStack< type >::push ( const type d) [inline]
template<class type>
void QPtrStack< type >::push ( const type d) [inline]
template<class type>
bool QPtrStack< type >::remove ( void  ) [inline]
template<class type>
bool QPtrStack< type >::remove ( void  ) [inline]
template<class type>
void QPtrStack< type >::setAutoDelete ( bool  enable) [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.

Ver también:
autoDelete()

Reimplementado de QPtrCollection.

template<class type>
void QPtrStack< type >::setAutoDelete ( bool  enable) [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.

Ver también:
autoDelete()

Reimplementado de QPtrCollection.

template<class type>
type* QPtrStack< type >::top ( void  ) const [inline]
template<class type>
type* QPtrStack< type >::top ( void  ) const [inline]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'