Dom.AttributeLookup Class Reference

Detailed Description

A lookup is used to cache e.g. elements by ID. They hugely increase lookup speed and are automatically created for high traffic attributes (like ID).

Public Member Functions

 AttributeLookup ()
 
void Add (string key, Element ele)
 Adds the given element to this lookup. More...
 
bool Remove (string key, Element ele)
 Removes the given element value from this lookup. More...
 

Public Attributes

Dictionary< string,
AttributeLookupLink
Lookup
 The raw lookup. More...
 

Properties

int Count [get]
 How many unique values are in this lookup? This is not the number of elements. More...
 

Constructor & Destructor Documentation

Dom.AttributeLookup.AttributeLookup ( )
inline

Member Function Documentation

void Dom.AttributeLookup.Add ( string  key,
Element  ele 
)
inline

Adds the given element to this lookup.

bool Dom.AttributeLookup.Remove ( string  key,
Element  ele 
)
inline

Removes the given element value from this lookup.

Returns
True if the cache should also be removed.

Member Data Documentation

Dictionary<string,AttributeLookupLink> Dom.AttributeLookup.Lookup

The raw lookup.

Property Documentation

int Dom.AttributeLookup.Count
get

How many unique values are in this lookup? This is not the number of elements.