CObjectCon Class Reference

class CObjectCon : public CBase

An object container.

An object container acts as a home for a set of related reference counting objects.

A reference counting object, a CObject type, must be added to an object container. Only one instance of a given reference counting object can be held by an object container, i.e. each object within an object container must be distinct.

Object containers are constructed by an object container index, a CObjectConIx type.

Note that this class is not intended for user derivation.

CObject

CObjectConIx

Inherits from

Constructor & Destructor Documentation

CObjectCon(TInt)

IMPORT_CCObjectCon(TIntaUniqueID)[protected]

Parameters

TInt aUniqueID

~CObjectCon()

IMPORT_C~CObjectCon()

Member Functions Documentation

AddL(CObject *)

IMPORT_C voidAddL(CObject *anObj)

Parameters

CObject * anObj

At(TInt)

IMPORT_C CObject *At(TIntaFindHandle)const

Parameters

TInt aFindHandle

AtL(TInt)

IMPORT_C CObject *AtL(TIntaFindHandle)const

Parameters

TInt aFindHandle

CheckUniqueFullName(const CObject *, const TDesC &)

IMPORT_C TIntCheckUniqueFullName(const CObject *anOwner,
const TDesC &aName
)const

Parameters

const CObject * anOwner
const TDesC & aName

CheckUniqueFullName(const CObject *)

IMPORT_C TIntCheckUniqueFullName(const CObject *anObject)const

Parameters

const CObject * anObject

Count()

TInt Count()const [inline]

Gets the number of reference counting objects in this object container.

The number of objects.

FindByFullName(TInt &, const TDesC &, TFullName &)

IMPORT_C TIntFindByFullName(TInt &aFindHandle,
const TDesC &aMatch,
TFullName &aFullName
)const

Parameters

TInt & aFindHandle
const TDesC & aMatch
TFullName & aFullName

FindByName(TInt &, const TDesC &, TName &)

IMPORT_C TIntFindByName(TInt &aFindHandle,
const TDesC &aMatch,
TName &aName
)const

Parameters

TInt & aFindHandle
const TDesC & aMatch
TName & aName

NamesMatch(const CObject *, const CObject *)

TBool NamesMatch(const CObject *anObject,
const CObject *aCurrentObject
)const [protected]

Parameters

const CObject * anObject
const CObject * aCurrentObject

NamesMatch(const CObject *, const TName &, const CObject *)

TBool NamesMatch(const CObject *anObject,
const TName &anObjectName,
const CObject *aCurrentObject
)const [protected]

Parameters

const CObject * anObject
const TName & anObjectName
const CObject * aCurrentObject

NewL()

IMPORT_C CObjectCon *NewL()[static]

Remove(CObject *)

IMPORT_C voidRemove(CObject *anObj)

Parameters

CObject * anObj

UniqueID()

TInt UniqueID()const [inline]

Gets this object container's unique ID.

The unique ID value.

operator[](TInt)

IMPORT_C CObject *operator[](TIntanIndex)

Parameters

TInt anIndex

Member Data Documentation

TInt iAllocated

TInt iAllocated[private]

TInt iCount

TInt iCount[private]

CObject ** iObjects

CObject **iObjects[private]

TAny * iSpare1

TAny *iSpare1[private]

TAny * iSpare2

TAny *iSpare2[private]

TInt iUniqueID

TInt iUniqueID

The object container's unique Id value.