DictionaryOfHavingKeyT< TKey, TValue > Class Reference

A dictionary containing values which have keys. More...

Inheritance diagram for DictionaryOfHavingKeyT< TKey, TValue >:

IHavingKeyT< TKey > OwnedDictionaryOfHavingKeyT< TKey, TValue, TOwner > List of all members.

Public Member Functions

virtual bool Ins (TValue value)
 Inserts value in the dictionary if the value is not null and if the dictionary has no value with the same key.
virtual void Insert (TValue value)
 Inserts value in the dictionary.
void Remove (TKey key)
 Removes an appropriate key-value pair from the dictionary.
void Clear ()
 Clears the dictionary.
bool ContainsKey (TKey key)
 Checks for key in the dictionary.
bool Contains (TValue item)
 Checks for item in the dictionary.
IEnumerator< TValue > GetEnumerator ()
 Returns enumerator.

Properties

ICollection< TKey > Keys
 Keys.
ICollection< TValue > Values
 Values.
TValue this [TKey key]
 Accessor.
int Count
 Number of key-value pairs in the dictionary.

Detailed Description

A dictionary containing values which have keys.

<typeparam name="TKey">key type</typeparam> <typeparam name="TValue">value types</typeparam>


Member Function Documentation

virtual bool Ins TValue  value  )  [virtual]
 

Inserts value in the dictionary if the value is not null and if the dictionary has no value with the same key.

Parameters:
value value
Returns:
true on successful insertion

Reimplemented in OwnedDictionaryOfHavingKeyT< TKey, TValue, TOwner >.

virtual void Insert TValue  value  )  [virtual]
 

Inserts value in the dictionary.

Parameters:
value value

Reimplemented in OwnedDictionaryOfHavingKeyT< TKey, TValue, TOwner >.

void Remove TKey  key  ) 
 

Removes an appropriate key-value pair from the dictionary.

Parameters:
key key

void Clear  ) 
 

Clears the dictionary.

bool ContainsKey TKey  key  ) 
 

Checks for key in the dictionary.

Parameters:
key key
Returns:
true if the key is found

bool Contains TValue  item  ) 
 

Checks for item in the dictionary.

Parameters:
item item
Returns:
true if the item is in the dictionary

IEnumerator<TValue> GetEnumerator  ) 
 

Returns enumerator.

Returns:
enumerator


Property Documentation

ICollection<TKey> Keys [get]
 

Keys.

ICollection<TValue> Values [get]
 

Values.

TValue this[TKey key] [get]
 

Accessor.

Parameters:
key key
Returns:
value

int Count [get]
 

Number of key-value pairs in the dictionary.


Generated on Sun May 28 08:45:06 2006 for Acmx.Common documentation by  doxygen 1.4.5