PowerUI.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

PowerUI.AttributeLookup.AttributeLookup ( )
inline

Member Function Documentation

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

Adds the given element to this lookup.

bool PowerUI.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> PowerUI.AttributeLookup.Lookup

The raw lookup.

Property Documentation

int PowerUI.AttributeLookup.Count
get

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