CAgnMemPage Class Reference

class CAgnMemPage : public CBase

Inherits from

Constructor & Destructor Documentation

CAgnMemPage(TUint)

CAgnMemPage(TUintaCellSize)[private, inline]

Constructor

Parameters

TUint aCellSize

~CAgnMemPage()

~CAgnMemPage()

Destructor

Member Functions Documentation

Alloc()

TAny *Alloc()

Return pointer to available memory cell or Null if none available

CellSize()

TUint CellSize()const [inline]

Return size of each cell(element)

ConstructL()

voidConstructL()[private]

Create array of KMemPageSize memory cells

Contains(const TAny *)

TBool Contains(const TAny *aPtr)const [inline]

Is aPtr allocated from this page

Parameters

const TAny * aPtr

Free()

voidFree()

Free memory cell

IsEmpty()

TBool IsEmpty()const [inline]

Are any entries allocated?

IsFull()

TBool IsFull()const [inline]

Are there any memory cell not allocated?

NewL(TUint)

CAgnMemPage *NewL(TUintaCellSize)[static]

Parameters

TUint aCellSize

Next()

CAgnMemPage *Next()const [inline]

Return pointer ot next page of memory cell

SetNext(CAgnMemPage *)

voidSetNext(CAgnMemPage *aNext)[inline]

Set pointer to the next page of memory cell

Parameters

CAgnMemPage * aNext

Member Data Documentation

TUint iCellSize

TUint iCellSize[private]

TInt iCount

TInt iCount[private]

TInt8 * iEntries

TInt8 *iEntries[private]

CAgnMemPage * iNext

CAgnMemPage *iNext[private]

TInt8 * iNextAvail

TInt8 *iNextAvail[private]