Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32base.h
Link against: euser.lib

Class CArrayPtrSeg

CArrayPtrSeg<class T>

Support

Supported from 5.0

Description

Array of pointers to objects implemented using a segmented dynamic buffer. The elements of the array are pointers to instances of the template class T and are contained within a CBufSeg.

This type of array has the full behaviour of segmented arrays but, in addition, the CArrayPtr<class T>::ResetAndDestroy() function offers a way of destroying all of the objects whose pointers form the elements of the array before resetting the array.

Derivation

CArrayFixA thin templated base class for arrays of fixed length objects
CArrayFixBaseBase class for arrays of fixed length objects
CArrayPtrA thin templated base class for arrays of pointers to objects
CArrayPtrSegArray of pointers to objects implemented using a segmented dynamic buffer
CBaseBase class for all classes to be instantiated on the heap

Defined in CArrayPtrSeg:
CArrayPtrSeg()

Inherited from CArrayFix:
AppendL(), AppendL()Append, Array(), At(), Back(), End(), ExpandL(), ExtendL(), Find(), FindIsq(), InsertIsqAllowDuplicatesL(), InsertIsqL(), InsertL(), ResizeL(), operator[]

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

Inherited from CArrayPtr:
ResetAndDestroy()

Inherited from CBase:
operator new()


Construction


CArrayPtrSeg()

CArrayPtrSeg(TInt aGranularity);

Description

Constructs a segmented array of pointers 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 18 panic.