TStorePagePoolToken Class Reference

class TStorePagePoolToken

Persistent settings to use for a RStorePagePool.

RStorePagePool

Public Member Functions
TStorePagePoolToken()
TStorePagePoolToken(TEmpty)
IMPORT_C voidExternalizeL(RWriteStream &)
TBool HasAvailable()
IMPORT_C voidInternalizeL(RReadStream &)
TBool IsEmpty()
voidTouch()
Private Member Functions
TStorePagePoolToken(TStreamId, TPageRef)
Public Member Enumerations
enumTEmpty { EEmpty }
Private Attributes
TPageRef iAvail
TStreamId iHead

Constructor & Destructor Documentation

TStorePagePoolToken()

TStorePagePoolToken()[inline]

Default constructor.

TStorePagePoolToken(TEmpty)

TStorePagePoolToken(TEmpty)[inline]

Constructor that intialises the TStorePagePoolToken for an empty page pool.

Parameters

TEmpty

TStorePagePoolToken(TStreamId, TPageRef)

TStorePagePoolToken(TStreamIdaHead,
TPageRefanAvail
)[private, inline]

Parameters

TStreamId aHead
TPageRef anAvail

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

HasAvailable()

TBool HasAvailable()const [inline]

Tests if there is a free page in the pool.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

IsEmpty()

TBool IsEmpty()const [inline]

Tests if the page pool is empty.

Touch()

voidTouch()[inline]

Sets the available pages to 0.

Member Enumerations Documentation

Enum TEmpty

Provides a TStorePagePoolToken initialisation flag. Initialise for an empty page pool flag.

Enumerators

EEmpty

Member Data Documentation

TPageRef iAvail

TPageRef iAvail[private]

TStreamId iHead

TStreamId iHead[private]