CAttributeLookupTable Class Reference

class CAttributeLookupTable : public CBase

Provides an attribute lookup table, which maintains a global set of unique IDs to be defined for document node attributes and language tags.

It does this by generating a unique (in the scope of the lookup table object) ID for any string passed to it. Once a string has been seen once, any further references to it will map back to the same ID value.

Inherits from

  • CAttributeLookupTable

Constructor & Destructor Documentation

CAttributeLookupTable()

CAttributeLookupTable()[private]

~CAttributeLookupTable()

IMPORT_C~CAttributeLookupTable()

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

Debug(TDebugSelectorType, TAny *, TAny *)

IMPORT_C voidDebug(TDebugSelectorTypeaSelector,
TAny *aParam1,
TAny *aParam2
)

Parameters

TDebugSelectorType aSelector
TAny * aParam1
TAny * aParam2

Des2IDL(const TDesC &)

IMPORT_C const HBufC *Des2IDL(const TDesC &)

Gets a unique ID for a specified descriptor.

If this is the first time the descriptor has been used, a new ID will be allocated.

Parameters

const TDesC & Descriptor to get ID for

FindDes(const TDesC &)

CAttributeLookupTableNode *FindDes(const TDesC &)[private]

Parameters

const TDesC &

Hash(const TDesC &)

TUint Hash(const TDesC &)[private]

Parameters

const TDesC &

KeyExists(const TDesC &)

IMPORT_C const HBufC *KeyExists(const TDesC &)

Tests if an ID has been allocated for a specified descriptor.

Parameters

const TDesC & Descriptor to test

NewL()

IMPORT_C CAttributeLookupTable *NewL()[static]

Allocates and constructs a new attribute lookup table.

Reset()

IMPORT_C voidReset()

Clears all allocated IDs.

Member Enumerations Documentation

Enum TDebugSelectorType

Enumerators

EPrint
EPrintWholeTable

Member Data Documentation

CArrayPtrFlat< CArrayPtrSeg< CAttributeLookupTableNode > > * iList

CArrayPtrFlat< CArrayPtrSeg< CAttributeLookupTableNode > > *iList[private]