Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: attrlut.h
Link against: Wutil.lib

Class CAttributeLookupTable

class CAttributeLookupTable : public CBase

Support

Supported from 6.0

Description

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.

Derivation

CAttributeLookupTableProvides an attribute lookup table, which maintains a global set of unique IDs to be defined for document node attributes and language tags
CBaseBase class for all classes to be instantiated on the heap

Defined in CAttributeLookupTable:
Anonymous, CAttributeLookupTable(), ConstructL(), Debug(), Des2IDL(), EPrint, EPrintWholeTable, FindDes(), Hash(), KeyExists(), NewL(), Reset(), TDebugSelectorType, iList, ~CAttributeLookupTable()

Inherited from CBase:
operator new()


Construction and destruction


NewL()

static CAttributeLookupTable* CAttributeLookupTable::NewL();

Description

Allocates and constructs a new attribute lookup table.

Return value

CAttributeLookupTable*

New attribute lookup table


~CAttributeLookupTable()

~CAttributeLookupTable();

Description

Destructor.

[Top]


Member functions


Des2IDL()

const HBufC* Des2IDL(const TDesC&);

Description

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

Return value

const HBufC*

ID


KeyExists()

const HBufC* KeyExists(const TDesC&);

Description

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

Parameters

const TDesC&

Descriptor to test

Return value

const HBufC*

ID, or NULL if none has been allocated


Reset()

void Reset();

Description

Clears all allocated IDs.

[Top]


Internal members


CAttributeLookupTable()

private: CAttributeLookupTable();

Description

This member is internal and not intended for use.


ConstructL()

private: void ConstructL();

Description

This member is internal and not intended for use.


Debug()

void Debug(TDebugSelectorType aSelector, TAny* aParam1, TAny* aParam2);

Description

This member is internal and not intended for use.


FindDes()

private: CAttributeLookupTableNode* FindDes(const TDesC&);

Description

This member is internal and not intended for use.


Hash()

private: TUint Hash(const TDesC&);

Description

This member is internal and not intended for use.


iList

private: CArrayPtrFlat<CArrayPtrSeg<CAttributeLookupTableNode>>* iList;

Description

This member is internal and not intended for use.


Typedef TDebugSelectorType

typedef enum;

Description

This member is internal and not intended for use.


Enum Anonymous

N/A

Description

This member is internal and not intended for use.

EPrint

This member is internal and not intended for use.

EPrintWholeTable

This member is internal and not intended for use.