Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32base.h
Link against: euser.lib

Class CArrayFixSeg<TAny>

CArrayFixSeg<TAny>

Support

Supported from 5.0

Description

An array of fixed length untyped objects using a segmented dynamic buffer. The array elements are contained within a CBufSeg.

The class is useful for constructing an array of fixed length buffers, where the length is decided at run time.

This class is also useful as a data member of a base class in a thin template class/base class pair where the type of the array element is not known until the owning thin template class is instantiated.

Derivation

CArrayFix<TAny>A template specialisation base class for arrays of fixed length untyped objects
CArrayFixBaseBase class for arrays of fixed length objects
CArrayFixSeg<TAny>An array of fixed length untyped objects using a segmented dynamic buffer
CBaseBase class for all classes to be instantiated on the heap

Defined in CArrayFixSeg:
CArrayFixSeg(), ~CArrayFixSeg()

Inherited from CArrayFix<TAny>:
AppendL(), AppendL()Append, At(), Back(), End(), ExtendL()

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

Inherited from CBase:
operator new()


Construction


CArrayFixSeg()

CArrayFixSeg(TInt aRecordLength,TInt aGranularity);

Description

Constructs a segmented array of fixed length objects with the specified granularity to contain elements of the specified length.

Notes

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

Parameters

TInt aRecordLength

The length of the elements of this array. This value must be positive otherwise the constructor raises an E32USER-CBase 17panic.

TInt aGranularity

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

[Top]


Destruction


~CArrayFixSeg()

~CArrayFixSeg()

Description

The destructor is empty and is present only to cause the virtual function table to be defined in a unique module.