CMemPagePool Class Reference

#include <s32page.h>

class CMemPagePool : public CBase

Inherits from

  • CMemPagePool

    Detailed Description

    Uses memory to implement the MPagePool page pool interface.

    The class allocates pages from the default heap, storing them in an array. This pool is not persistent.

    Constructor & Destructor Documentation

    CMemPagePool ( )

    IMPORT_CCMemPagePool()

    Default constructor.

    ~CMemPagePool ( )

    IMPORT_C~CMemPagePool()

    Destructor.

    On destruction, memory for all pages is freed.

    Member Function Documentation

    AcquireL ( )

    IMPORT_C TPageAbandonFunctionAcquireL()

    For memory-based pools, there is no need to abandon pages, so the function returned does nothing.

    Returns: Function that does nothing.

    AllocL ( )

    IMPORT_C TAny *AllocL()

    Allocates a new unassigned page.

    Returns: Newly allocated page.

    AssignL ( const TAny *, TPageReclamation )

    IMPORT_C TPageRefAssignL(const TAny *aPage,
    TPageReclamationaReclamation = EPageDeleteOnly
    )

    DoDeleteL ( TPageRef )

    IMPORT_C voidDoDeleteL(TPageRefaRef)[protected]

    LockL ( TPageRef )

    IMPORT_C TAny *LockL(TPageRefaRef)

    Returns a pointer to a specified page.

    ParameterDescription
    aRefReference to the page to get

    Returns: Page specified by aRef

    NewL ( )

    IMPORT_C CMemPagePool *NewL()[static]

    Allocates and constructs a new CMemPagePool object.

    Returns: New CMemPagePool object

    NewLC ( )

    IMPORT_C CMemPagePool *NewLC()[static]

    Allocates and constructs a new CMemPagePool object, and leaves it on the cleanup stack.

    Returns: New CMemPagePool object

    Unlock ( const TAny *, TPageChange )

    IMPORT_C voidUnlock(const TAny *aPage,
    TPageChangeaChange = EPageNoChange
    )

    UpdateL ( const TAny * )

    IMPORT_C voidUpdateL(const TAny *aPage)