CPageCache Class Reference

#include <s32page.h>

Link against: estor.lib

class CPageCache : public CBase

Inherits from

  • CPageCache

    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.

    ParameterDescription
    aPagesNumber of pages in the cache

    NewL ( TInt )

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

    Allocates and constructs a new page cache.

    ParameterDescription
    aPagesNumber of pages in the cache

    Returns: 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.

    ParameterDescription
    aPagesNumber of pages in the cache

    Returns: New page cache object