Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32base.h
Link against: euser.lib

Class CArrayVarSeg

CArrayVarSeg<class T>

Support

Supported from 5.0

Description

Array of variable length objects implemented using a segmented dynamic buffer. The elements of the array are instances of the template class T and are contained within their own heap cells. Pointers to the elements are maintained within a segmented dynamic buffer, a CbufSeg.

The elements can be T or R type objects and must have an accessible default constructor.

Derivation

CArrayVarA thin templated base class for variable length arrays
CArrayVarBaseAn implementation base class for variable length arrays
CArrayVarSegArray of variable length objects implemented using a segmented dynamic buffer
CBaseBase class for all classes to be instantiated on the heap

Defined in CArrayVarSeg:
CArrayVarSeg()

Inherited from CArrayVar:
AppendL(), Array(), At(), ExpandL(), ExtendL(), Find(), FindIsq(), InsertIsqAllowDuplicatesL(), InsertIsqL(), InsertL(), operator[]

Inherited from CArrayVarBase:
Compress(), Count(), Delete(), Length(), Reset(), Sort()

Inherited from CBase:
operator new()


Construction


CArrayVarSeg()

CArrayVarSeg(TInt aGranularity);

Description

Constructs a variable segmented array with specified granularity.

Notes

No memory is allocated to the array buffer by this C++ constructor.

Parameters

TInt aGranularity

The granularity of the array. This value must be positive otherwise the constructor raises an E32USER-CBase 19 panic.