Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: sb32tree.h
Link against: estor.lib

Class CPageCache

CPageCache

Support

Supported from 5.0

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.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CPageCacheProvides a cache for page pools

Defined in CPageCache:
Anonymous, CPageCache(), ConstructL(), EDefaultPages, NewL(), NewLC(), ~CPageCache()

Inherited from CBase:
operator new()


NewL()

static CPageCache* NewL(TInt aPages=EDefaultPages);

Description

Allocates and constructs a new page cache.

Parameters

TInt aPages=EDefaultPages

Number of pages in the cache

Return value

CPageCache*

New page cache object

[Top]


NewLC()

static CPageCache* NewLC(TInt aPages=EDefaultPages);

Description

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

Parameters

TInt aPages=EDefaultPages

Number of pages in the cache

Return value

CPageCache*

New page cache object

[Top]


CPageCache()

CPageCache();

Description

Default constructor.

[Top]


ConstructL()

void ConstructL(TInt aPages=EDefaultPages);

Description

Second phase construction.

Parameters

TInt aPages=EDefaultPages

Number of pages in the cache

[Top]


~CPageCache()

~CPageCache();

Description

Destructor.

All cache pages are deleted.

[Top]


Enum Anonymous

enum {EDefaultPages=20};

Description

Defines the default number of pages in the cache.

EDefaultPages

Default number of pages in the cache.