Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32base.h
Link against: euser.lib

Class CArrayPakFlat

CArrayPakFlat<Class T>

Support

Supported from 5.0

Description

Array of variable length objects packed into a flat buffer. The elements of the array are instances of the template class T and are contained within a flat dynamic buffer, a CBufFlat.

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

Derivation

CArrayPakA thin templated base class for variable length, packed, arrays
CArrayPakBaseAn implementation base class for variable length, packed, arrays
CArrayPakFlatArray of variable length objects packed into a flat buffer
CBaseBase class for all classes to be instantiated on the heap

Defined in CArrayPakFlat:
CArrayPakFlat()

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

Inherited from CArrayPakBase:
Compress(), Count(), Delete(), Length(), Reset(), SortL()

Inherited from CBase:
operator new()


Construction


CArrayPakFlat()

CArrayPakFlat(TInt aGranularity);

Description

Constructs a packed flat 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 20 panic.