CNode Class Reference

class CNode : public CBase

Inherits from

Public Member Functions
~CNode()
IMPORT_C voidAddAttributeL(TAny *, CBase *)
IMPORT_C voidAddDataAndAttributeL(HBufC16 *, TAny *, CBase *)
IMPORT_C CNode &AppendNodeL(TAny *)
IMPORT_C voidAppendNodeToThisNodeL(CNode *)
IMPORT_C CBase *Attribute(TAny *)
IMPORT_C CBase *AttributeByIndex(TInt)
IMPORT_C CBase *AttributeByIndex(TInt, TAny *&)
IMPORT_C TIntAttributeCount()
IMPORT_C TBoolAttributeExists(TAny *)
IMPORT_C TAny *AttributeTypeByIndex(TInt)
IMPORT_C CNode *Child(TInt)
IMPORT_C voidClearSetDataNoDeleteL()
IMPORT_C HBufC16 *Data()
IMPORT_C voidDeleteAllAttributes()
IMPORT_C voidDeleteAllChildNodes()
IMPORT_C voidDeleteAttribute(TAny *)
IMPORT_C voidDeleteChildNode(CNode *)
IMPORT_C CNode *NewL(TAny *, CNode *)
IMPORT_C CNode *NextChild(const CNode *)
IMPORT_C CNode *NextSibling()
IMPORT_C TIntNumberImmediateChildren()
IMPORT_C CNode *Parent()
IMPORT_C CNode *PrevChild(const CNode &)
IMPORT_C CNode *PrevSibling()
IMPORT_C voidRemoveAttributeNoDelete(TAny *)
IMPORT_C voidReparentL(CNode *)
IMPORT_C voidResetDataPointer(HBufC16 *)
IMPORT_C const CNode &Root()
IMPORT_C voidSetDataL(HBufC16 *)
IMPORT_C voidSetDataNoDeleteL()
IMPORT_C voidSetFileDataL(HBufC16 *)
IMPORT_C voidSetType(TAny *)
IMPORT_C TAny *Type()
Protected Member Functions
CNode(TAny *, CNode *)
voidAdjustBasePointers()
TInt FindChild(const CNode *)
HBufC16 *SetupDeletableOrNonDeleteableDataLC()
Private Member Functions
voidReserved1()
voidReserved1()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
CArrayPtr< CNode > *iChildList
CDataNoDelete *iDataValue
CNode *iParent
TAny *iType
CArrayPtrFlat< TAny >iTypes
TInt32 *iTypesBasePtr
CArrayPtrFlat< CBase >iValues
Private Attributes
TAny *iReserved

Constructor & Destructor Documentation

CNode(TAny *, CNode *)

CNode(TAny *aType,
CNode *aParent
)[protected]

Parameters

TAny * aType
CNode * aParent

~CNode()

IMPORT_C~CNode()

Member Functions Documentation

AddAttributeL(TAny *, CBase *)

IMPORT_C voidAddAttributeL(TAny *AttributeType,
CBase *aAttributeValue
)

Parameters

TAny * AttributeType
CBase * aAttributeValue

AddDataAndAttributeL(HBufC16 *, TAny *, CBase *)

IMPORT_C voidAddDataAndAttributeL(HBufC16 *aData,
TAny *AttributeType,
CBase *aAttributeValue
)

Parameters

HBufC16 * aData
TAny * AttributeType
CBase * aAttributeValue

AdjustBasePointers()

voidAdjustBasePointers()[protected]

AppendNodeL(TAny *)

IMPORT_C CNode &AppendNodeL(TAny *aType = 0)

Parameters

TAny * aType = 0

AppendNodeToThisNodeL(CNode *)

IMPORT_C voidAppendNodeToThisNodeL(CNode *aNode)

Parameters

CNode * aNode

Attribute(TAny *)

IMPORT_C CBase *Attribute(TAny *AttributeType)const

Parameters

TAny * AttributeType

AttributeByIndex(TInt)

IMPORT_C CBase *AttributeByIndex(TIntaIndex)const

Parameters

TInt aIndex

AttributeByIndex(TInt, TAny *&)

IMPORT_C CBase *AttributeByIndex(TIntaIndex,
TAny *&aType
)const

Parameters

TInt aIndex
TAny *& aType

AttributeCount()

IMPORT_C TIntAttributeCount()const

AttributeExists(TAny *)

IMPORT_C TBoolAttributeExists(TAny *aAttributeType)const

Parameters

TAny * aAttributeType

AttributeTypeByIndex(TInt)

IMPORT_C TAny *AttributeTypeByIndex(TIntaIndex)const

Parameters

TInt aIndex

Child(TInt)

IMPORT_C CNode *Child(TIntaByIndex)const

Parameters

TInt aByIndex

ClearSetDataNoDeleteL()

IMPORT_C voidClearSetDataNoDeleteL()

Data()

IMPORT_C HBufC16 *Data()const

DeleteAllAttributes()

IMPORT_C voidDeleteAllAttributes()

DeleteAllChildNodes()

IMPORT_C voidDeleteAllChildNodes()

DeleteAttribute(TAny *)

IMPORT_C voidDeleteAttribute(TAny *aAttributeType)

Parameters

TAny * aAttributeType

DeleteChildNode(CNode *)

IMPORT_C voidDeleteChildNode(CNode *aNode)

Parameters

CNode * aNode

FindChild(const CNode *)

TInt FindChild(const CNode *aNode)const [protected]

Parameters

const CNode * aNode

NewL(TAny *, CNode *)

IMPORT_C CNode *NewL(TAny *aType,
CNode *aParent
)[static]

Parameters

TAny * aType
CNode * aParent

NextChild(const CNode *)

IMPORT_C CNode *NextChild(const CNode *aNode = NULL)const

Parameters

const CNode * aNode = NULL

NextSibling()

IMPORT_C CNode *NextSibling()const

NumberImmediateChildren()

IMPORT_C TIntNumberImmediateChildren()const

Parent()

IMPORT_C CNode *Parent()const

PrevChild(const CNode &)

IMPORT_C CNode *PrevChild(const CNode &aNode)const

Parameters

const CNode & aNode

PrevSibling()

IMPORT_C CNode *PrevSibling()const

RemoveAttributeNoDelete(TAny *)

IMPORT_C voidRemoveAttributeNoDelete(TAny *aAttributeType)

Parameters

TAny * aAttributeType

ReparentL(CNode *)

IMPORT_C voidReparentL(CNode *aParent)

Parameters

CNode * aParent

Reserved1()

voidReserved1()[private, virtual]

Reserved1()

voidReserved1()const [private, virtual]

ResetDataPointer(HBufC16 *)

IMPORT_C voidResetDataPointer(HBufC16 *aData)

Parameters

HBufC16 * aData

Root()

IMPORT_C const CNode &Root()const

SetDataL(HBufC16 *)

IMPORT_C voidSetDataL(HBufC16 *aDataNowNodeOwns)

Parameters

HBufC16 * aDataNowNodeOwns

SetDataNoDeleteL()

IMPORT_C voidSetDataNoDeleteL()

SetFileDataL(HBufC16 *)

IMPORT_C voidSetFileDataL(HBufC16 *aFileDataLocationNowNodeOwns)

Parameters

HBufC16 * aFileDataLocationNowNodeOwns

SetType(TAny *)

IMPORT_C voidSetType(TAny *aType)

Parameters

TAny * aType

SetupDeletableOrNonDeleteableDataLC()

HBufC16 *SetupDeletableOrNonDeleteableDataLC()[protected]

Type()

IMPORT_C TAny *Type()const

Member Data Documentation

CArrayPtr< CNode > * iChildList

CArrayPtr< CNode > *iChildList[protected]

CDataNoDelete * iDataValue

CDataNoDelete *iDataValue[protected]

CNode * iParent

CNode *iParent[protected]

TAny * iReserved

TAny *iReserved[private]

TAny * iType

TAny *iType[protected]

CArrayPtrFlat< TAny > iTypes

CArrayPtrFlat< TAny >iTypes[protected]

TInt32 * iTypesBasePtr

TInt32 *iTypesBasePtr[protected]

CArrayPtrFlat< CBase > iValues

CArrayPtrFlat< CBase >iValues[protected]