Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos protegidos | Amigas
Referencia de la Clase QGVector

The QGVector class is an internal class for implementing Qt collection classes. Más...

#include <qgvector.h>

Diagrama de herencias de QGVector
QPtrCollection QPtrCollection QPtrVector< type > QPtrVector< type > QPtrVector< char > QPtrVector< char > QPtrVector< QConnectionList > QPtrVector< QConnectionList > QPtrVector< QObjectUserData > QPtrVector< QObjectUserData >

Lista de todos los miembros.

Métodos públicos

QDataStreamread (QDataStream &)
QDataStreamwrite (QDataStream &) const
virtual int compareItems (Item, Item)
QDataStreamread (QDataStream &)
QDataStreamwrite (QDataStream &) const
virtual int compareItems (Item, Item)

Métodos protegidos

 QGVector ()
 QGVector (uint size)
 QGVector (const QGVector &v)
 ~QGVector ()
QGVectoroperator= (const QGVector &v)
bool operator== (const QGVector &v) const
Itemdata () const
uint size () const
uint count () const
bool insert (uint index, Item)
bool remove (uint index)
Item take (uint index)
void clear ()
bool resize (uint newsize)
bool fill (Item, int flen)
void sort ()
int bsearch (Item) const
int findRef (Item, uint index) const
int find (Item, uint index) const
uint containsRef (Item) const
uint contains (Item) const
Item at (uint index) const
bool insertExpand (uint index, Item)
void toList (QGList *) const
virtual QDataStreamread (QDataStream &, Item &)
virtual QDataStreamwrite (QDataStream &, Item) const
 QGVector ()
 QGVector (uint size)
 QGVector (const QGVector &v)
 ~QGVector ()
QGVectoroperator= (const QGVector &v)
bool operator== (const QGVector &v) const
Itemdata () const
uint size () const
uint count () const
bool insert (uint index, Item)
bool remove (uint index)
Item take (uint index)
void clear ()
bool resize (uint newsize)
bool fill (Item, int flen)
void sort ()
int bsearch (Item) const
int findRef (Item, uint index) const
int find (Item, uint index) const
uint containsRef (Item) const
uint contains (Item) const
Item at (uint index) const
bool insertExpand (uint index, Item)
void toList (QGList *) const
virtual QDataStreamread (QDataStream &, Item &)
virtual QDataStreamwrite (QDataStream &, Item) const

Amigas

class QGList

Descripción detallada

The QGVector class is an internal class for implementing Qt collection classes.


Documentación del constructor y destructor

QGVector::QGVector ( ) [protected]
QGVector::QGVector ( uint  size) [protected]
QGVector::QGVector ( const QGVector v) [protected]
QGVector::~QGVector ( ) [protected]
QGVector::QGVector ( ) [protected]
QGVector::QGVector ( uint  size) [protected]
QGVector::QGVector ( const QGVector v) [protected]
QGVector::~QGVector ( ) [protected]

Documentación de las funciones miembro

Item QGVector::at ( uint  index) const [inline, protected]
Item QGVector::at ( uint  index) const [inline, protected]
int QGVector::bsearch ( Item  d) const [protected]
int QGVector::bsearch ( Item  ) const [protected]
void QGVector::clear ( void  ) [protected, virtual]
void QGVector::clear ( void  ) [protected, virtual]
int QGVector::compareItems ( Item  d1,
Item  d2 
) [virtual]

This virtual function compares two list items.

Returns:

  • 0 if d1 == d2
  • non-zero if d1 != d2

This function returns int rather than bool so that reimplementations can return one of three values and use it to sort by:

  • 0 if d1 == d2
  • > 0 (positive integer) if d1 > d2
  • < 0 (negative integer) if d1 < d2

The QPtrVector::sort() and QPtrVector::bsearch() functions require that compareItems() is implemented as described here.

This function should not modify the vector because some const functions call compareItems().

virtual int QGVector::compareItems ( Item  ,
Item   
) [virtual]
uint QGVector::contains ( Item  d) const [protected]
uint QGVector::contains ( Item  ) const [protected]
uint QGVector::containsRef ( Item  d) const [protected]
uint QGVector::containsRef ( Item  ) const [protected]
uint QGVector::count ( ) const [inline, protected, virtual]
uint QGVector::count ( ) const [inline, protected, virtual]
Item* QGVector::data ( ) const [inline, protected]
Item* QGVector::data ( ) const [inline, protected]
bool QGVector::fill ( Item  ,
int  flen 
) [protected]
bool QGVector::fill ( Item  d,
int  flen 
) [protected]
int QGVector::find ( Item  d,
uint  index 
) const [protected]
int QGVector::find ( Item  ,
uint  index 
) const [protected]
int QGVector::findRef ( Item  d,
uint  index 
) const [protected]
int QGVector::findRef ( Item  ,
uint  index 
) const [protected]
bool QGVector::insert ( uint  index,
Item  d 
) [protected]
bool QGVector::insert ( uint  index,
Item   
) [protected]
bool QGVector::insertExpand ( uint  index,
Item  d 
) [protected]
bool QGVector::insertExpand ( uint  index,
Item   
) [protected]
QGVector & QGVector::operator= ( const QGVector v) [protected]
QGVector& QGVector::operator= ( const QGVector v) [protected]
bool QGVector::operator== ( const QGVector v) const [protected]
bool QGVector::operator== ( const QGVector v) const [protected]
virtual QDataStream& QGVector::read ( QDataStream ,
Item  
) [protected, virtual]
QDataStream & QGVector::read ( QDataStream s)
QDataStream & QGVector::read ( QDataStream s,
Item d 
) [protected, virtual]

Reads a collection/vector item from the stream s and returns a reference to the stream.

The default implementation sets d to 0.

Ver también:
write()
QDataStream& QGVector::read ( QDataStream )
bool QGVector::remove ( uint  index) [protected]
bool QGVector::remove ( uint  index) [protected]
bool QGVector::resize ( uint  newsize) [protected]
bool QGVector::resize ( uint  newsize) [protected]
uint QGVector::size ( ) const [inline, protected]
uint QGVector::size ( ) const [inline, protected]
void QGVector::sort ( ) [protected]
void QGVector::sort ( ) [protected]
QPtrCollection::Item QGVector::take ( uint  index) [protected]
Item QGVector::take ( uint  index) [protected]
void QGVector::toList ( QGList list) const [protected]
void QGVector::toList ( QGList ) const [protected]
QDataStream & QGVector::write ( QDataStream s) const
QDataStream & QGVector::write ( QDataStream s,
Item   
) const [protected, virtual]

Writes a collection/vector item to the stream s and returns a reference to the stream.

The default implementation does nothing.

Ver también:
read()
virtual QDataStream& QGVector::write ( QDataStream ,
Item   
) const [protected, virtual]
QDataStream& QGVector::write ( QDataStream ) const

Documentación de las funciones relacionadas y clases amigas

QGList [friend]

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'