CAgnSimpleEntryAllocator Class Reference

class CAgnSimpleEntryAllocator : public CBase

Class for controlling the allocation and deletion of simple entries. These are created in a paged area of memory to prevent too much RAM defragmentation when there are 1000s of entries in the indexes on the server. CAgnSimpleEntrys are pre-allocated in blocks of KMemPageSize entries

Inherits from

  • CAgnSimpleEntryAllocator

Constructor & Destructor Documentation

CAgnSimpleEntryAllocator()

IMPORT_CCAgnSimpleEntryAllocator()

~CAgnSimpleEntryAllocator()

IMPORT_C~CAgnSimpleEntryAllocator()

Member Functions Documentation

CreateSimpleEntryL(CCalEntry::TType, const CAgnSimpleEntry *)

IMPORT_C CAgnSimpleEntry *CreateSimpleEntryL(CCalEntry::TTypeaType,
const CAgnSimpleEntry *aEntry = NULL
)

Parameters

CCalEntry::TType aType
const CAgnSimpleEntry * aEntry = NULL

Delete(CAgnSimpleEntry *)

IMPORT_C voidDelete(CAgnSimpleEntry *aEntry)

Parameters

CAgnSimpleEntry * aEntry

DeleteMemPage(CAgnMemPage *)

voidDeleteMemPage(CAgnMemPage *aPage)[private]

Parameters

CAgnMemPage * aPage

NewSimpleEntryL(TUint)

CAgnSimpleEntry *NewSimpleEntryL(TUintaSize)[private]

Parameters

TUint aSize

Member Data Documentation

TInt iCount

TInt iCount[private]

CAgnMemPage * iHeadPage

CAgnMemPage *iHeadPage[private]