Sharpility
Sharpility.Collections.HashSetMultiDictionary< TKey, TValue > Class Template Reference

Implementation of MultiDictionary using HashSet for key values. More...

Inheritance diagram for Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >:
Sharpility.Collections.AbstractMultiDictionary< TKey, TValue > Sharpility.Collections.MultiDictionary< TKey, TValue >

List of all members.

Public Member Functions

 HashSetMultiDictionary ()
 Creates HashSetMultiDictionary.
 HashSetMultiDictionary (int keysCapacity)
 Creates HashSetMultiDictionary with given keys capacity.

Static Public Member Functions

static HashSetMultiDictionary
< TKey, TValue > 
Empty ()
 Returns empty HashSetMultiDictionary.
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key, TValue value)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4, TKey key5, TValue value5)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4, TKey key5, TValue value5, TKey key6, TValue value6)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4, TKey key5, TValue value5, TKey key6, TValue value6, TKey key7, TValue value7)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4, TKey key5, TValue value5, TKey key6, TValue value6, TKey key7, TValue value7, TKey key8, TValue value8)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4, TKey key5, TValue value5, TKey key6, TValue value6, TKey key7, TValue value7, TKey key8, TValue value8, TKey key9, TValue value9)
static HashSetMultiDictionary
< TKey, TValue > 
Of (TKey key1, TValue value1, TKey key2, TValue value2, TKey key3, TValue value3, TKey key4, TValue value4, TKey key5, TValue value5, TKey key6, TValue value6, TKey key7, TValue value7, TKey key8, TValue value8, TKey key9, TValue value9, TKey key10, TValue value10)

Protected Member Functions

override ICollection< TValue > CreateCollection (int capacity)
 Creates collection matching MultiDictionary implementation with given capacity.
override ICollection< TValue > ResultCollection (ICollection< TValue > collection)
 Creates collection matching MultiDictionary implementation.
override ICollection< TValue > ComparableCollection (ICollection< TValue > collection)
 Created comparable collection from given collection.

Detailed Description

template<TKey, TValue>
class Sharpility::Collections::HashSetMultiDictionary< TKey, TValue >

Implementation of MultiDictionary using HashSet for key values.

Template Parameters:
TKeyType of dictionary key
TValueType of dictionary value

Member Function Documentation

template<TKey , TValue >
override ICollection<TValue> Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >.ComparableCollection ( ICollection< TValue >  collection) [inline, protected, virtual]

Created comparable collection from given collection.

Parameters:
collectiontransformed collection
Returns:
comparable collection

Implements Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >.

template<TKey , TValue >
override ICollection<TValue> Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >.CreateCollection ( int  capacity) [inline, protected, virtual]

Creates collection matching MultiDictionary implementation with given capacity.

Parameters:
capacitycollection capacity
Returns:
created collection

Implements Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >.

template<TKey , TValue >
static HashSetMultiDictionary<TKey, TValue> Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >.Empty ( ) [inline, static]

Returns empty HashSetMultiDictionary.

Returns:
template<TKey , TValue >
Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >.HashSetMultiDictionary ( ) [inline]
template<TKey , TValue >
Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >.HashSetMultiDictionary ( int  keysCapacity) [inline]

Creates HashSetMultiDictionary with given keys capacity.

Parameters:
keysCapacityCapacity of keys
template<TKey , TValue >
override ICollection<TValue> Sharpility.Collections.HashSetMultiDictionary< TKey, TValue >.ResultCollection ( ICollection< TValue >  collection) [inline, protected, virtual]

Creates collection matching MultiDictionary implementation.

Returns:
created collection

Implements Sharpility.Collections.AbstractMultiDictionary< TKey, TValue >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Enumerations Properties