CMTPHandleAllocator Class Reference
class CMTPHandleAllocator : public CBase |
Defines the handle allocator which centralize the allocation of object handles
Nested Classes and Structures
Constructor & Destructor Documentation
CMTPHandleAllocator(CMTPObjectStore &)
Member Functions Documentation
AppendHandleBlockL(TUint, TUint, TInt)
ConstructL()
void | ConstructL | ( | ) | [private] |
Second-phase construction
ExtendArrayL(TUint)
void | ExtendArrayL | ( | TUint | aDataProviderId | ) | [private] |
Extends the array to handle more data providers. DP IDs are allocated sequentially, so this way the array never needs to be much larger than necessary. This must only be called if the array size needs to be increased.
Parameters
TUint aDataProviderId | the array must be sized to fit this data provider ID |
NewL(CMTPObjectStore &)
Two-phase object construction
NextIdL(TUint)
Get the next object identifier (Handle) for the specified data provider.
- leave
- KErrOverFlow if the object identifier has been exhausted for the data provider
Parameters
TUint aDataProviderId | The Id of the data provider |
SetIdL(TUint32, TInt64)
Initialize the allocator for this DP. This must be called if and only if the DP uses persistent objects, and some persistent objects exist in the object store, so that later allocations do not duplicate earlier object IDs. If it is called, it must therefore be called before any new objects are allocated for this DP.
Member Data Documentation
RPointerArray< CDPHandleCache > iNextIDPool
CMTPObjectStore & iObjectStore
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.