CObjectConIx Class Reference

class CObjectConIx : public CBase

A container for object containers

This is referred to as a container index.

The class provides the mechanism through which object containers, CObjectCon types, are created.

CObjectCon CObject

Inherits from

Constructor & Destructor Documentation

CObjectConIx()

IMPORT_C CObjectConIx ( ) [protected]

Default constructor.

~CObjectConIx()

IMPORT_C ~CObjectConIx ( )

Destructor.

Frees all resources owned by the container index, prior to its destruction.

In particular, it destroys all of its contained object containers.

Member Functions Documentation

CreateContainerL(CObjectCon *&)

IMPORT_C void CreateContainerL ( CObjectCon *& anObject ) [protected]

Actually create the container

Parameters

CObjectCon *& anObject

CreateL()

IMPORT_C CObjectCon * CreateL ( )

Creates a new object container and adds it into this container index's collection.

In addition to creating the object container, the function assigns the next available unique ID to it.

Lookup(TInt)

IMPORT_C CObjectCon * Lookup ( TInt aFindHandle ) const

Gets a pointer to the object container with the unique ID from the specified find handle.

Parameters

TInt aFindHandle The find handle.

LookupByUniqueId(TInt)

CObjectCon * LookupByUniqueId ( TInt aUniqueId ) const [private]

Gets a pointer to the object container with the specified unique ID, or NULL.

Parameters

TInt aUniqueId

NewL()

IMPORT_C CObjectConIx * NewL ( ) [static]

Creates a new container index.

Remove(CObjectCon *)

IMPORT_C void Remove ( CObjectCon * aCon )

Removes the specified object container from this container index and deletes it.

panic
E32USER-CBASE 36 if the object container cannnot be found.

Parameters

CObjectCon * aCon A pointer to the object container to be removed. If the pointer is NULL, the function just returns.

Member Data Documentation

TInt iAllocated

TInt iAllocated [private]

CObjectCon ** iContainers

CObjectCon ** iContainers [private]

TInt iCount

TInt iCount [private]

TUint16 iNextUniqueID

TUint16 iNextUniqueID [private]

TAny * iSpare1

TAny * iSpare1 [private]

TAny * iSpare2

TAny * iSpare2 [private]

TUint16 iUniqueIDHasWrapped

TUint16 iUniqueIDHasWrapped [private]