Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32base.h
Link against: euser.lib

Class CArrayVarFlat

CArrayVarFlat<Class T>

Support

Supported from 5.0

Description

Array of variable length objects implemented using a flat 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 the flat dynamic buffer, a CBufFlat.

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
CArrayVarFlatArray of variable length objects implemented using a flat dynamic buffer
CBaseBase class for all classes to be instantiated on the heap

Defined in CArrayVarFlat:
CArrayVarFlat()

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


CArrayVarFlat()

CArrayVarFlat(TInt aGranularity);

Description

Constructs a variable 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 19 panic.