Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32base.h>
Link against: euser.lib

Class CArrayFixFlat< TUid >

class CArrayFixFlat< TUid > : public CArrayFix< TUid >;

Description

Template specialisation base class for arrays of TUid types implemented in a flat dynamic buffer.

Derivation

Members

Defined in CArrayFixFlat< TUid >:

See also:


Construction and destruction


~CArrayFixFlat()

IMPORT_C ~CArrayFixFlat();

Description

Destructor.

[Top]


Member functions


CArrayFixFlat(TInt)

IMPORT_C CArrayFixFlat(TInt aGranularity);

Description

Constructs the array, with the specified granularity, to contain elements of TUid type.

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

Parameters

TInt aGranularity

The granularity of the array.

Return value

Panic codes

E32USER-CBase

18 if aGranularity is not positive.


SetReserveL(TInt)

inline void SetReserveL(TInt aCount);

Description

Reserves space in the array buffer.

If necessary, the array buffer is allocated or re-allocated so that it can accommodate the specified number of TUid elements.

After a successful call to this function, elements can be added to the array and the process is guaranteed not to fail for lack of memory - provided the total number of elements does not exceed the specified number.

This function does not increase the number of elements in the array; i.e. the member function CArrayFixBase::Count()const returns the same value both before and after a call to this function.

Parameters

TInt aCount

The total number of elements for which space is to be reserved.

Panic codes

E32USER-CBase

27, if aCount is less than the current number of elements in the array.