CArrayFixFlat< TInt > Class Template Reference

#include <e32base.h>

Link against: euser_v5.lib

template <>
class CArrayFixFlat< TInt > : public CArrayFix< TInt >

Inherits from

Public Member Functions
CArrayFixFlat(TInt)
~CArrayFixFlat()
voidSetReserveL(TInt)
Inherited Functions
CArrayFix< TInt >::AppendL(const TInt &)
CArrayFix< TInt >::AppendL(const TInt &,TInt)
CArrayFix< TInt >::AppendL(const TInt *,TInt)
CArrayFix< TInt >::Array()const
CArrayFix< TInt >::At(TInt)
CArrayFix< TInt >::At(TInt)const
CArrayFix< TInt >::Back(TInt)
CArrayFix< TInt >::Back(TInt)const
CArrayFix< TInt >::CArrayFix(TBufRep,TInt)
CArrayFix< TInt >::End(TInt)
CArrayFix< TInt >::End(TInt)const
CArrayFix< TInt >::ExpandL(TInt)
CArrayFix< TInt >::ExtendL()
CArrayFix< TInt >::Find(const TInt &,TKeyArrayFix &,TInt &)const
CArrayFix< TInt >::FindIsq(const TInt &,TKeyArrayFix &,TInt &)const
CArrayFix< TInt >::InsertIsqAllowDuplicatesL(const TInt &,TKeyArrayFix &)
CArrayFix< TInt >::InsertIsqL(const TInt &,TKeyArrayFix &)
CArrayFix< TInt >::InsertL(TInt,const TInt &)
CArrayFix< TInt >::InsertL(TInt,const TInt &,TInt)
CArrayFix< TInt >::InsertL(TInt,const TInt *,TInt)
CArrayFix< TInt >::ResizeL(TInt)
CArrayFix< TInt >::ResizeL(TInt,const TInt &)
CArrayFix< TInt >::operator[](TInt)
CArrayFix< TInt >::operator[](TInt)const
CArrayFixBase::AtR(const CBase *,TInt)
CArrayFixBase::CArrayFixBase(TBufRep,TInt,TInt)
CArrayFixBase::Compress()
CArrayFixBase::Count()const
CArrayFixBase::CountR(const CBase *)
CArrayFixBase::Delete(TInt)
CArrayFixBase::Delete(TInt,TInt)
CArrayFixBase::Find(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::FindIsq(const TAny *,TKeyArrayFix &,TInt &)const
CArrayFixBase::InsertIsqAllowDuplicatesL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertIsqL(const TAny *,TKeyArrayFix &)
CArrayFixBase::InsertL(TInt,const TAny *)
CArrayFixBase::InsertL(TInt,const TAny *,TInt)
CArrayFixBase::InsertRepL(TInt,const TAny *,TInt)
CArrayFixBase::Length()const
CArrayFixBase::Reset()
CArrayFixBase::ResizeL(TInt,const TAny *)
CArrayFixBase::SetKey(TKeyArrayFix &)const
CArrayFixBase::SetReserveFlatL(TInt)
CArrayFixBase::Sort(TKeyArrayFix &)
CArrayFixBase::~CArrayFixBase()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()

Detailed Description

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

See also: TInt

Constructor & Destructor Documentation

CArrayFixFlat ( TInt )

IMPORT_CCArrayFixFlat(TIntaGranularity)[explicit]

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

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

Parameters
aGranularityThe granularity of the array.
Panic Codes
E32USER-CBase18 if aGranularity is not positive.

~CArrayFixFlat ( )

IMPORT_C~CArrayFixFlat()

Destructor.

Member Function Documentation

SetReserveL ( TInt )

voidSetReserveL(TIntaCount)[inline]

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 TInt 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() returns the same value both before and after a call to this function.

Parameters
aCountThe total number of elements for which space is to be reserved.
Panic Codes
E32USER-CBase27, if aCount is less than the current number of elements in the array.