Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32base.h>

Class CArrayPtrSeg

class CArrayPtrSeg : public CArrayPtr< T >;

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::ResetAndDestroy() function offers a way of destroying all of the objects whose pointers form the elements of the array before resetting the array.

Derivation

Members

Defined in CArrayPtrSeg:

See also:


Construction and destruction


CArrayPtrSeg(TInt)

inline CArrayPtrSeg(TInt aGranularity);

Description

Constructs a segmented array of pointers with specified granularity.

Note that no memory is allocated to the array buffer by this constructor.

Parameters

TInt aGranularity

The granularity of the array.

Panic codes

E32USER-CBase

18, if aGranularity is not positive.