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.
Public Member Functions | |
---|---|
~CObjectCon() | |
IMPORT_C void | AddL(CObject *) |
IMPORT_C CObject * | At(TInt) |
IMPORT_C CObject * | AtL(TInt) |
IMPORT_C TInt | CheckUniqueFullName(const CObject *, const TDesC &) |
IMPORT_C TInt | CheckUniqueFullName(const CObject *) |
TInt | Count() |
IMPORT_C TInt | FindByFullName(TInt &, const TDesC &, TFullName &) |
IMPORT_C TInt | FindByName(TInt &, const TDesC &, TName &) |
IMPORT_C CObjectCon * | NewL() |
IMPORT_C void | Remove(CObject *) |
TInt | UniqueID() |
IMPORT_C CObject * | operator[](TInt) |
Protected Member Functions | |
---|---|
CObjectCon(TInt) | |
TBool | NamesMatch(const CObject *, const CObject *) |
TBool | NamesMatch(const CObject *, const TName &, const CObject *) |
Public Attributes | |
---|---|
TInt | iUniqueID |
Private Attributes | |
---|---|
TInt | iAllocated |
TInt | iCount |
CObject ** | iObjects |
TAny * | iSpare1 |
TAny * | iSpare2 |
IMPORT_C TInt | CheckUniqueFullName | ( | const CObject * | anOwner, |
const TDesC & | aName | |||
) | const |
IMPORT_C TInt | CheckUniqueFullName | ( | const CObject * | anObject | ) | const |
const CObject * anObject |
TInt | Count | ( | ) | const [inline] |
Gets the number of reference counting objects in this object container.
The number of objects.
IMPORT_C TInt | FindByFullName | ( | TInt & | aFindHandle, |
const TDesC & | aMatch, | |||
TFullName & | aFullName | |||
) | const |
IMPORT_C TInt | FindByName | ( | TInt & | aFindHandle, |
const TDesC & | aMatch, | |||
TName & | aName | |||
) | const |
TBool | NamesMatch | ( | const CObject * | anObject, |
const CObject * | aCurrentObject | |||
) | const [protected] |
TBool | NamesMatch | ( | const CObject * | anObject, |
const TName & | anObjectName, | |||
const CObject * | aCurrentObject | |||
) | const [protected] |
TInt | UniqueID | ( | ) | const [inline] |
Gets this object container's unique ID.
The unique ID value.