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_C CPageCache ( )

Default constructor.

~CPageCache()

IMPORT_C ~CPageCache ( )

Destructor.

All cache pages are deleted.

Member Functions Documentation

ConstructL(TInt)

IMPORT_C void ConstructL ( TInt aPages = EDefaultPages )

Second phase construction.

Parameters

TInt aPages = EDefaultPages Number of pages in the cache

Find(TCachePagePool *, TPageRef)

TCachePage * Find ( TCachePagePool * aPool,
TPageRef aRef
) [private]

Parameters

TCachePagePool * aPool
TPageRef aRef

NewL(TInt)

IMPORT_C CPageCache * NewL ( TInt aPages = EDefaultPages ) [static]

Allocates and constructs a new page cache.

Parameters

TInt aPages = EDefaultPages Number of pages in the cache

NewLC(TInt)

IMPORT_C CPageCache * NewLC ( TInt aPages = EDefaultPages ) [static]

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

Parameters

TInt aPages = EDefaultPages Number 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]