# QGArray Class Reference

The QGArray class is an internal class for implementing the QArray class. More...

`#include <qgarray.h>`

Inherited by QArray.

List of all member functions.

## Public Members

- QGArray ()

## Protected Members

- QGArray ( int, int )
- QGArray ( int size )
- QGArray ( const QGArray & a )
- virtual ~QGArray ()
- QGArray& operator= ( const QGArray & a )
- virtual void detach ()
- char* data () const
- uint nrefs () const
- uint size () const
- bool isEqual ( const QGArray & a ) const
- bool resize ( uint newsize )
- bool fill ( const char * d, int len, uint sz )
- QGArray& assign ( const QGArray & a )
- QGArray& assign ( const char * d, uint len )
- QGArray& duplicate ( const QGArray & a )
- QGArray& duplicate ( const char * d, uint len )
- void store ( const char * d, uint len )
- array_data* sharedBlock () const
- void setSharedBlock ( array_data * p )
- QGArray& setRawData ( const char * d, uint len )
- void resetRawData ( const char * d, uint len )
- int find ( const char * d, uint index, uint sz ) const
- int contains ( const char * d, uint sz ) const
- char* at ( uint index ) const
- bool setExpand ( uint index, const char * d, uint sz )
- virtual array_data* newData ()
- virtual void deleteData ( array_data * p )

## Detailed Description

The QGArray class is an internal class for implementing the QArray class.

QGArray is a strictly internal class that acts as base class for the QArray template array.

It contains an array of bytes and has no notion of an array element.

## Member Function Documentation

### QGArray::QGArray ()

For internal use only.

### QGArray::QGArray ( const QGArray & a ) `[protected]`

For internal use only.

### QGArray::QGArray ( int size ) `[protected]`

For internal use only.

### QGArray::QGArray ( int, int ) `[protected]`

For internal use only.

### QGArray::~QGArray () `[virtual protected]`

For internal use only.

### QGArray & QGArray::assign ( const QGArray & a ) `[protected]`

For internal use only.

### QGArray & QGArray::assign ( const char * d, uint len ) `[protected]`

For internal use only.

### char * QGArray::at ( uint index ) const `[protected]`

For internal use only.

### int QGArray::contains ( const char * d, uint sz ) const `[protected]`

For internal use only.

### char * QGArray::data () const `[protected]`

For internal use only.

### void QGArray::deleteData ( array_data * p ) `[virtual protected]`

For internal use only.

### void QGArray::detach () `[virtual protected]`

For internal use only.

Reimplemented in QBitArray, QArray and QByteArray.

### QGArray & QGArray::duplicate ( const QGArray & a ) `[protected]`

For internal use only.

### QGArray & QGArray::duplicate ( const char * d, uint len ) `[protected]`

For internal use only.

### bool QGArray::fill ( const char * d, int len, uint sz ) `[protected]`

For internal use only.

### int QGArray::find ( const char * d, uint index, uint sz ) const `[protected]`

For internal use only.

### bool QGArray::isEqual ( const QGArray & a ) const `[protected]`

For internal use only.

### array_data * QGArray::newData () `[virtual protected]`

For internal use only.

### uint QGArray::nrefs () const `[protected]`

For internal use only.

### QGArray & QGArray::operator= ( const QGArray & a ) `[protected]`

For internal use only.

### void QGArray::resetRawData ( const char * d, uint len ) `[protected]`

For internal use only.

### bool QGArray::resize ( uint newsize ) `[protected]`

For internal use only.

### bool QGArray::setExpand ( uint index, const char * d, uint sz ) `[protected]`

For internal use only.

### QGArray & QGArray::setRawData ( const char * d, uint len ) `[protected]`

For internal use only.

### void QGArray::setSharedBlock ( array_data * p ) `[protected]`

For internal use only.

### array_data * QGArray::sharedBlock () const `[protected]`

For internal use only.

### uint QGArray::size () const `[protected]`

For internal use only.

### void QGArray::store ( const char * d, uint len ) `[protected]`

For internal use only.

Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):

This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.

It was generated from the following files:

- qgarray.h: 1998/08/19
- qgarray.cpp: 1998/07/03