CObjectIx Class Reference

class CObjectIx : public CBase

Generates handle numbers for reference counting objects.

This is referred to as an object index.

Adding a reference counting object to an object index is the way in which a unique handle number can be generated for that object. A handle number is the way in which an object, which is owned or managed by another thread or process can be identified.

CObject

Inherits from

Constructor & Destructor Documentation

CObjectIx()

IMPORT_CCObjectIx()[protected]

~CObjectIx()

IMPORT_C~CObjectIx()

Member Functions Documentation

ActiveCount()

TInt ActiveCount()const [inline]

Gets the current number of reference counting objects held by this object index.

The current number.

AddL(CObject *)

IMPORT_C TIntAddL(CObject *anObj)

Parameters

CObject * anObj

At(TInt, TInt)

IMPORT_C CObject *At(TIntaHandle,
TIntaUniqueID
)

Parameters

TInt aHandle
TInt aUniqueID

At(TInt)

IMPORT_C CObject *At(TIntaHandle)

Parameters

TInt aHandle

At(const CObject *)

IMPORT_C TIntAt(const CObject *anObject)const

Parameters

const CObject * anObject

AtL(TInt, TInt)

IMPORT_C CObject *AtL(TIntaHandle,
TIntaUniqueID
)

Parameters

TInt aHandle
TInt aUniqueID

AtL(TInt)

IMPORT_C CObject *AtL(TIntaHandle)

Parameters

TInt aHandle

Count(CObject *)

IMPORT_C TIntCount(CObject *anObject)const

Parameters

CObject * anObject

Count()

TInt Count()const [inline]

Gets the number greater then the last slot number used to hold valid CObject pointer. The input argument of CObject* CObjectIx::operator[]() must be less then the number returned by this method.

The number greater then the last used slot.

CObjectIx::ActiveCount

CObjectIx::operator[]

NewL()

IMPORT_C CObjectIx *NewL()[static]

Remove(TInt)

IMPORT_C voidRemove(TIntaHandle)

Parameters

TInt aHandle

UpdateState()

voidUpdateState()[private]

operator[](TInt)

IMPORT_C CObject *operator[](TIntanIndex)

Parameters

TInt anIndex

Member Enumerations Documentation

Enum anonymous

Enumerators

ENoClose = KHandleNoClose

When ORd into the handle number, indicates that the reference counting object cannot be closed.

ELocalHandle = KHandleFlagLocal

When ORed into the handle number, indicates that the handle is a local handle.

Member Data Documentation

TInt iAllocated

TInt iAllocated[private]

TInt iFree

TInt iFree[private]

TInt iHighWaterMark

TInt iHighWaterMark[private]

TInt iNextInstance

TInt iNextInstance[private]

TInt iNumEntries

TInt iNumEntries[private]

SObjectIxRec * iObjects

SObjectIxRec *iObjects[private]

TAny * iSpare1

TAny *iSpare1[private]

TAny * iSpare2

TAny *iSpare2[private]

TInt iUpdateDisabled

TInt iUpdateDisabled[private]