CPageCache Class Reference

#include <s32page.h>

class CPageCache : public CBase

Inherits from

Detailed Description

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.

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
EDefaultPages20

Constructor & Destructor Documentation

CPageCache ( )

IMPORT_CCPageCache()

Default constructor.

~CPageCache ( )

IMPORT_C~CPageCache()

Destructor.

All cache pages are deleted.

Member Function Documentation

ConstructL ( TInt )

IMPORT_C voidConstructL(TIntaPages = EDefaultPages)

Second phase construction.

Parameters
aPagesNumber of pages in the cache

NewL ( TInt )

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

Allocates and constructs a new page cache.

Parameters
aPagesNumber of pages in the cache
Return Value
New page cache object

NewLC ( TInt )

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

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

Parameters
aPagesNumber of pages in the cache
Return Value
New page cache object