Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos protegidos | Funciones relacionadas
Referencia de la plantilla de la Clase QMemArray< type >

#include <qmemarray.h>

Diagrama de herencias de QMemArray< type >
QGArray QGArray

Lista de todos los miembros.

Tipos públicos

typedef typeIterator
typedef const typeConstIterator
typedef type ValueType
typedef typeIterator
typedef const typeConstIterator
typedef type ValueType

Métodos públicos

 QMemArray ()
 QMemArray (int size)
 QMemArray (const QMemArray< type > &a)
 ~QMemArray ()
QMemArray< type > & operator= (const QMemArray< type > &a)
typedata () const
uint nrefs () const
uint size () const
uint count () const
bool isEmpty () const
bool isNull () const
bool resize (uint size)
bool resize (uint size, Optimization optim)
bool truncate (uint pos)
bool fill (const type &d, int size=-1)
void detach ()
QMemArray< typecopy () const
QMemArray< type > & assign (const QMemArray< type > &a)
QMemArray< type > & assign (const type *a, uint n)
QMemArray< type > & duplicate (const QMemArray< type > &a)
QMemArray< type > & duplicate (const type *a, uint n)
QMemArray< type > & setRawData (const type *a, uint n)
void resetRawData (const type *a, uint n)
int find (const type &d, uint i=0) const
int contains (const type &d) const
void sort ()
int bsearch (const type &d) const
typeoperator[] (int i) const
typeat (uint i) const
 operator const type * () const
bool operator== (const QMemArray< type > &a) const
bool operator!= (const QMemArray< type > &a) const
Iterator begin ()
Iterator end ()
ConstIterator begin () const
ConstIterator end () const
 QMemArray ()
 QMemArray (int size)
 QMemArray (const QMemArray< type > &a)
 ~QMemArray ()
QMemArray< type > & operator= (const QMemArray< type > &a)
typedata () const
uint nrefs () const
uint size () const
uint count () const
bool isEmpty () const
bool isNull () const
bool resize (uint size)
bool resize (uint size, Optimization optim)
bool truncate (uint pos)
bool fill (const type &d, int size=-1)
void detach ()
QMemArray< typecopy () const
QMemArray< type > & assign (const QMemArray< type > &a)
QMemArray< type > & assign (const type *a, uint n)
QMemArray< type > & duplicate (const QMemArray< type > &a)
QMemArray< type > & duplicate (const type *a, uint n)
QMemArray< type > & setRawData (const type *a, uint n)
void resetRawData (const type *a, uint n)
int find (const type &d, uint i=0) const
int contains (const type &d) const
void sort ()
int bsearch (const type &d) const
typeoperator[] (int i) const
typeat (uint i) const
 operator const type * () const
bool operator== (const QMemArray< type > &a) const
bool operator!= (const QMemArray< type > &a) const
Iterator begin ()
Iterator end ()
ConstIterator begin () const
ConstIterator end () const

Métodos protegidos

 QMemArray (int, int)
 QMemArray (int, int)

Funciones relacionadas

(Observar que estas no son funciones miembro.)

Q_UINT16 qChecksum (const char *data, uint len)
QDataStreamoperator<< (QDataStream &s, const QByteArray &a)
QDataStreamoperator>> (QDataStream &s, QByteArray &a)

template<class type>
class QMemArray< type >


Documentación de los 'Typedef' miembros de la clase

template<class type>
typedef const type* QMemArray< type >::ConstIterator
template<class type>
typedef const type* QMemArray< type >::ConstIterator
template<class type>
typedef type* QMemArray< type >::Iterator
template<class type>
typedef type* QMemArray< type >::Iterator
template<class type>
typedef type QMemArray< type >::ValueType
template<class type>
typedef type QMemArray< type >::ValueType

Documentación del constructor y destructor

template<class type>
QMemArray< type >::QMemArray ( int  ,
int   
) [inline, protected]
template<class type>
QMemArray< type >::QMemArray ( ) [inline]
template<class type>
QMemArray< type >::QMemArray ( int  size) [inline]
template<class type>
QMemArray< type >::QMemArray ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray< type >::~QMemArray ( ) [inline]
template<class type>
QMemArray< type >::QMemArray ( int  ,
int   
) [inline, protected]
template<class type>
QMemArray< type >::QMemArray ( ) [inline]
template<class type>
QMemArray< type >::QMemArray ( int  size) [inline]
template<class type>
QMemArray< type >::QMemArray ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray< type >::~QMemArray ( ) [inline]

Documentación de las funciones miembro

template<class type>
QMemArray<type>& QMemArray< type >::assign ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::assign ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::assign ( const type a,
uint  n 
) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::assign ( const type a,
uint  n 
) [inline]
template<class type>
type& QMemArray< type >::at ( uint  index) const [inline]

Returns a pointer to the byte at offset index in the array.

Reimplementado de QGArray.

template<class type>
type& QMemArray< type >::at ( uint  index) const [inline]

Returns a pointer to the byte at offset index in the array.

Reimplementado de QGArray.

template<class type>
Iterator QMemArray< type >::begin ( ) [inline]
template<class type>
ConstIterator QMemArray< type >::begin ( ) const [inline]
template<class type>
Iterator QMemArray< type >::begin ( ) [inline]
template<class type>
ConstIterator QMemArray< type >::begin ( ) const [inline]
template<class type>
int QMemArray< type >::bsearch ( const type d) const [inline]
template<class type>
int QMemArray< type >::bsearch ( const type d) const [inline]
template<class type>
int QMemArray< type >::contains ( const type d) const [inline]
template<class type>
int QMemArray< type >::contains ( const type d) const [inline]
template<class type>
QMemArray<type> QMemArray< type >::copy ( ) const [inline]

Reimplementado en QPointArray y QPointArray.

template<class type>
QMemArray<type> QMemArray< type >::copy ( ) const [inline]

Reimplementado en QPointArray y QPointArray.

template<class type>
uint QMemArray< type >::count ( ) const [inline]
template<class type>
uint QMemArray< type >::count ( ) const [inline]
template<class type>
type* QMemArray< type >::data ( ) const [inline]

Returns a pointer to the actual array data.

Reimplementado de QGArray.

template<class type>
type* QMemArray< type >::data ( ) const [inline]

Returns a pointer to the actual array data.

Reimplementado de QGArray.

template<class type>
void QMemArray< type >::detach ( ) [inline, virtual]

Detaches this array from shared array data.

Reimplementado de QGArray.

template<class type>
void QMemArray< type >::detach ( ) [inline, virtual]

Detaches this array from shared array data.

Reimplementado de QGArray.

template<class type>
QMemArray<type>& QMemArray< type >::duplicate ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::duplicate ( const type a,
uint  n 
) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::duplicate ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::duplicate ( const type a,
uint  n 
) [inline]
template<class type>
ConstIterator QMemArray< type >::end ( ) const [inline]
template<class type>
ConstIterator QMemArray< type >::end ( ) const [inline]
template<class type>
Iterator QMemArray< type >::end ( ) [inline]
template<class type>
Iterator QMemArray< type >::end ( ) [inline]
template<class type>
bool QMemArray< type >::fill ( const type d,
int  size = -1 
) [inline]
template<class type>
bool QMemArray< type >::fill ( const type d,
int  size = -1 
) [inline]
template<class type>
int QMemArray< type >::find ( const type d,
uint  i = 0 
) const [inline]
template<class type>
int QMemArray< type >::find ( const type d,
uint  i = 0 
) const [inline]
template<class type>
bool QMemArray< type >::isEmpty ( void  ) const [inline]
template<class type>
bool QMemArray< type >::isEmpty ( void  ) const [inline]
template<class type>
bool QMemArray< type >::isNull ( ) const [inline]
template<class type>
bool QMemArray< type >::isNull ( ) const [inline]
template<class type>
uint QMemArray< type >::nrefs ( ) const [inline]

Returns the reference count.

Reimplementado de QGArray.

template<class type>
uint QMemArray< type >::nrefs ( ) const [inline]

Returns the reference count.

Reimplementado de QGArray.

template<class type>
QMemArray< type >::operator const type * ( ) const [inline]
template<class type>
QMemArray< type >::operator const type * ( ) const [inline]
template<class type>
bool QMemArray< type >::operator!= ( const QMemArray< type > &  a) const [inline]
template<class type>
bool QMemArray< type >::operator!= ( const QMemArray< type > &  a) const [inline]
template<class type>
QMemArray<type>& QMemArray< type >::operator= ( const QMemArray< type > &  a) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::operator= ( const QMemArray< type > &  a) [inline]
template<class type>
bool QMemArray< type >::operator== ( const QMemArray< type > &  a) const [inline]
template<class type>
bool QMemArray< type >::operator== ( const QMemArray< type > &  a) const [inline]
template<class type>
type& QMemArray< type >::operator[] ( int  i) const [inline]
template<class type>
type& QMemArray< type >::operator[] ( int  i) const [inline]
template<class type>
void QMemArray< type >::resetRawData ( const type a,
uint  n 
) [inline]
template<class type>
void QMemArray< type >::resetRawData ( const type a,
uint  n 
) [inline]
template<class type>
bool QMemArray< type >::resize ( uint  newsize) [inline]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Reimplementado de QGArray.

template<class type>
bool QMemArray< type >::resize ( uint  newsize) [inline]

Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.

Reimplementado de QGArray.

template<class type>
bool QMemArray< type >::resize ( uint  newsize,
Optimization  optim 
) [inline]

Resizes the array to newsize bytes. optim is either MemOptim (the default) or SpeedOptim.

Note: SpeedOptim is only available if Qt is built in a particular configuration. By default, SpeedOptim is not available for general use.

Reimplementado de QGArray.

template<class type>
bool QMemArray< type >::resize ( uint  newsize,
Optimization  optim 
) [inline]

Resizes the array to newsize bytes. optim is either MemOptim (the default) or SpeedOptim.

Note: SpeedOptim is only available if Qt is built in a particular configuration. By default, SpeedOptim is not available for general use.

Reimplementado de QGArray.

template<class type>
QMemArray<type>& QMemArray< type >::setRawData ( const type a,
uint  n 
) [inline]
template<class type>
QMemArray<type>& QMemArray< type >::setRawData ( const type a,
uint  n 
) [inline]
template<class type>
uint QMemArray< type >::size ( ) const [inline]

Returns the size of the array, in bytes.

Reimplementado de QGArray.

template<class type>
uint QMemArray< type >::size ( ) const [inline]

Returns the size of the array, in bytes.

Reimplementado de QGArray.

template<class type>
void QMemArray< type >::sort ( ) [inline]
template<class type>
void QMemArray< type >::sort ( ) [inline]
template<class type>
bool QMemArray< type >::truncate ( uint  pos) [inline]
template<class type>
bool QMemArray< type >::truncate ( uint  pos) [inline]

Documentación de las funciones relacionadas y clases amigas

template<class type>
QDataStream & operator<< ( QDataStream s,
const QByteArray a 
) [related]

Writes byte array a to the stream s and returns a reference to the stream.

Ver también:
Format of the QDataStream operators
template<class type>
QDataStream & operator>> ( QDataStream s,
QByteArray a 
) [related]

Reads a byte array into a from the stream s and returns a reference to the stream.

Ver también:
Format of the QDataStream operators
template<class type>
Q_UINT16 qChecksum ( const char *  data,
uint  len 
) [related]

Returns the CRC-16 checksum of len bytes starting at data.

The checksum is independent of the byte order (endianness).


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'