ITree<TKey,TValue> 介面

定義

定義 STL/CLR hash_maphash_multimaphash_sethash_multiset 物件的介面。

generic <typename TKey, typename TValue>
public interface class ITree : ICloneable, Microsoft::VisualC::StlClr::Generic::IBidirectionalContainer<TValue>, System::Collections::ICollection
public interface ITree<TKey,TValue> : ICloneable, Microsoft.VisualC.StlClr.Generic.IBidirectionalContainer<TValue>, System.Collections.ICollection
type ITree<'Key, 'Value> = interface
    interface IBidirectionalContainer<'Value>
    interface ICloneable
    interface ICollection
    interface IEnumerable
Public Interface ITree(Of TKey, TValue)
Implements IBidirectionalContainer(Of TValue), ICloneable, ICollection

類型參數

TKey

受控制序列中項目的主要元件型別。

TValue

受控制序列中項目的實值元件型別。

實作

備註

某些方法 (特別是運算子) 會宣告參數的類型,但不會指定參數名稱。 這種參數稱為「未命名參數」(Unnamed Parameter)。 在這些方法的檔中, A_0 佔位元代表未命名的參數。

如需詳細資訊,請參閱 hash_map (STL/CLR) 、hash_multimap (STL/CLR ) 、hash_set (STL/CLR) hash_multiset (STL/CLR)

屬性

Count

取得 ICollection 中所包含的項目數。

(繼承來源 ICollection)
IsSynchronized

取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。

(繼承來源 ICollection)
SyncRoot

取得可用以同步存取 ICollection 的物件。

(繼承來源 ICollection)

方法

begin(ContainerBidirectionalIterator<TValue>)

指定受控制序列的開頭。

clear()

移除容器中的所有項目。

Clone()

建立目前執行個體複本的新物件。

(繼承來源 ICloneable)
CopyTo(Array, Int32)

從特定的 ICollection 索引開始,將 Array 的項目複製到 Array

(繼承來源 ICollection)
count(TKey)

尋找符合指定索引鍵的項目數目。

empty()

測試容器中是否沒有項目存在。

end(ContainerBidirectionalIterator<TValue>)

指定受控制序列的結尾。

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

尋找符合指定之索引鍵的範圍。

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

從容器移除由指定之 Iterator 所指定的項目。

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

從容器移除指定之 Iterator 之間的項目。

erase(TKey)

從容器移除符合指定之索引鍵的項目。

find(ContainerBidirectionalIterator<TValue>, TKey)

尋找符合指定之索引鍵的元素。

get_generation()

取得基礎容器的目前變化層代 (Generation)。

(繼承來源 IBidirectionalContainer<TValue>)
GetEnumerator()

傳回逐一查看集合的列舉值。

(繼承來源 IEnumerable)
insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)

將指定的項目新增至容器。

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

將指定的值新增至容器。

insert(IEnumerable<TValue>)

將指定的列舉新增至容器。

insert(IInputIterator<TValue>, IInputIterator<TValue>)

將指定之 Iterator 所指定的項目新增至容器。

key_comp()

傳回用於排序受控制序列的順序委派。 您會用它來比較兩個索引鍵。

lower_bound(ContainerBidirectionalIterator<TValue>, TKey)

尋找符合指定索引鍵之項目範圍的開頭。

rbegin(ReverseBidirectionalIterator<TValue>)

指定反向受控制序列的開頭。

rend(ReverseBidirectionalIterator<TValue>)

指定反向受控制序列的結尾。

size()

計算容器中的項目數目。

swap(ITree<TKey,TValue>)

交換兩個容器的內容。

upper_bound(ContainerBidirectionalIterator<TValue>, TKey)

尋找符合指定索引鍵之項目範圍的結尾。

value_comp()

傳回用於排序受控制序列的順序委派。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於