CPageCache Class Reference

class CPageCache : public CBase

Provides a cache for page pools.

Persistent page pools rely on a cache to provide in-memory space for their pages and to cache frequently accessed pages.

Inherits from

Constructor & Destructor Documentation

CPageCache()

IMPORT_CCPageCache()

Default constructor.

~CPageCache()

IMPORT_C~CPageCache()

Destructor.

All cache pages are deleted.

Member Functions Documentation

ConstructL(TInt)

IMPORT_C voidConstructL(TIntaPages = EDefaultPages)

Second phase construction.

Parameters

TInt aPages = EDefaultPagesNumber of pages in the cache

Find(TCachePagePool *, TPageRef)

TCachePage *Find(TCachePagePool *aPool,
TPageRefaRef
)[private]

Parameters

TCachePagePool * aPool
TPageRef aRef

NewL(TInt)

IMPORT_C CPageCache *NewL(TIntaPages = EDefaultPages)[static]

Allocates and constructs a new page cache.

Parameters

TInt aPages = EDefaultPagesNumber of pages in the cache

NewLC(TInt)

IMPORT_C CPageCache *NewLC(TIntaPages = EDefaultPages)[static]

Allocates and constructs a new page cache, and leaves it on the cleanup stack.

Parameters

TInt aPages = EDefaultPagesNumber of pages in the cache

Member Data Documentation

SCachePage * iEnd

SCachePage *iEnd[private]

TDblQue< TCachePage > iFree

TDblQue< TCachePage >iFree[private]

SCachePage * iPages

SCachePage *iPages[private]