| 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.
| Public Member Functions | |
|---|---|
| ~CObjectIx() | |
| TInt | ActiveCount() |
| IMPORT_C TInt | AddL(CObject *) |
| IMPORT_C CObject * | At(TInt, TInt) |
| IMPORT_C CObject * | At(TInt) |
| IMPORT_C TInt | At(const CObject *) |
| IMPORT_C CObject * | AtL(TInt, TInt) |
| IMPORT_C CObject * | AtL(TInt) |
| IMPORT_C TInt | Count(CObject *) |
| TInt | Count() |
| IMPORT_C CObjectIx * | NewL() |
| IMPORT_C void | Remove(TInt) |
| IMPORT_C CObject * | operator[](TInt) |
| Protected Member Functions | |
|---|---|
| CObjectIx() | |
| Private Member Functions | |
|---|---|
| void | UpdateState() |
| Public Member Enumerations | |
|---|---|
| enum | anonymous { ENoClose = KHandleNoClose, ELocalHandle = KHandleFlagLocal } |
| Private Attributes | |
|---|---|
| TInt | iAllocated |
| TInt | iFree |
| TInt | iHighWaterMark |
| TInt | iNextInstance |
| TInt | iNumEntries |
| SObjectIxRec * | iObjects |
| TAny * | iSpare1 |
| TAny * | iSpare2 |
| TInt | iUpdateDisabled |
| TInt | ActiveCount | ( | ) | const [inline] |
Gets the current number of reference counting objects held by this object index.
The current number.
| IMPORT_C TInt | At | ( | const CObject * | anObject | ) | const |
| const CObject * anObject |
| 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.
| 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. |