IHash<TKey, TValue> Interface

 

Defines the interface of the STL/CLR hash_map, hash_multimap, hash_set, and hash_multiset objects.

Namespace:   Microsoft.VisualC.StlClr
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

public interface IHash<TKey, TValue> : IBidirectionalContainer<TValue>, 
	ICloneable, ICollection, IEnumerable

Type Parameters

TKey

The type of the key component of an element in the controlled sequence.

TValue

The type of the value component of an element in the controlled sequence.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements contained in the ICollection.(Inherited from ICollection.)

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).(Inherited from ICollection.)

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the ICollection.(Inherited from ICollection.)

NameDescription
System_CAPS_pubmethodbegin(ContainerBidirectionalIterator<TValue>)

Designates the beginning of the controlled sequence.

System_CAPS_pubmethodbucket_count()

Counts the number of buckets in the hash table.

System_CAPS_pubmethodclear()

Removes all elements from the container.

System_CAPS_pubmethodClone()

Creates a new object that is a copy of the current instance.(Inherited from ICloneable.)

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.(Inherited from ICollection.)

System_CAPS_pubmethodcount(TKey)

Finds the number of elements that match a specified key.

System_CAPS_pubmethodempty()

Tests whether no elements are present in the container.

System_CAPS_pubmethodend(ContainerBidirectionalIterator<TValue>)

Designates the end of the controlled sequence.

System_CAPS_pubmethodequal_range(GenericPair<ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>>, TKey)

Finds the range that matches a specified key.

System_CAPS_pubmethoderase(TKey)

Removes elements from the container that match the specified key.

System_CAPS_pubmethoderase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes from the container the element that is specified by the given iterator.

System_CAPS_pubmethoderase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

Removes from the container the elements between the specified iterators.

System_CAPS_pubmethodfind(ContainerBidirectionalIterator<TValue>, TKey)

Finds an element that matches a specified key.

System_CAPS_pubmethodget_generation()

Gets the current change generation of the underlying container.(Inherited from IBidirectionalContainer<TValue>.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through a collection.(Inherited from IEnumerable.)

System_CAPS_pubmethodhash_delegate()

Returns the delegate that is used to convert a key value to an integer.

System_CAPS_pubmethodinsert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)

Adds the given element to the container.

System_CAPS_pubmethodinsert(GenericPair<ContainerBidirectionalIterator<TValue>, Boolean>, TValue)

Adds the given value to the container.

System_CAPS_pubmethodinsert(IEnumerable)

Adds the given enumeration to the container.

System_CAPS_pubmethodinsert(IInputIterator<TValue>, IInputIterator<TValue>)

Adds to the container the elements specified by the given iterators.

System_CAPS_pubmethodkey_comp()

Returns the ordering delegate that is used to order the controlled sequence. You use it to compare two keys.

System_CAPS_pubmethodload_factor()

Counts the average number of elements per bucket in the hash table.

System_CAPS_pubmethodlower_bound(ContainerBidirectionalIterator<TValue>, TKey)

Finds the beginning of the range of elements that match a specified key.

System_CAPS_pubmethodmax_load_factor()

Gets the maximum number of elements per bucket in the hash table.

System_CAPS_pubmethodmax_load_factor(Single)

Sets the maximum number of elements per bucket in the hash table.

System_CAPS_pubmethodrbegin(ReverseBidirectionalIterator<TValue>)

Designates the beginning of the reversed controlled sequence.

System_CAPS_pubmethodrehash(Int32)

Rebuilds the hash table.

System_CAPS_pubmethodrend(ReverseBidirectionalIterator<TValue>)

Designates the end of the reversed controlled sequence.

System_CAPS_pubmethodsize()

Counts the number of elements in the container.

System_CAPS_pubmethodswap(IHash<TKey, TValue>)

Swaps the contents of two containers.

System_CAPS_pubmethodupper_bound(ContainerBidirectionalIterator<TValue>, TKey)

Finds the end of the range of elements that match a specified key.

System_CAPS_pubmethodvalue_comp()

Returns the ordering delegate that is used to order the controlled sequence.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. Such a parameter is known as an unnamed parameter. In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.

For more information, see hash_map (STL-CLR), hash_multimap (STL-CLR), hash_set (STL-CLR), and hash_multiset (STL-CLR).

.NET Framework
Available since 3.5
Return to top
Show: