ITree<TKey,TValue> Interface
Definição
Define a interface dos objetos hash_map, hash_multimap, hash_set e hash_multiset do STL/CLR.Defines the interface of the STL/CLR hash_map, hash_multimap, hash_set, and hash_multiset objects.
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
Parâmetros de tipo
- TKey
O tipo do componente de chave de um elemento na sequência controlada.The type of the key component of an element in the controlled sequence.
- TValue
O tipo do componente de valor de um elemento na sequência controlada.The type of the value component of an element in the controlled sequence.
- Implementações
Comentários
Alguns métodos, principalmente operadores, declaram um tipo para um parâmetro, mas não especificam um nome de parâmetro.Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. Esse parâmetro é conhecido como parâmetro sem nome.Such a parameter is known as an unnamed parameter. Na documentação desses métodos, o espaço reservado __unnamed0 representa o parâmetro sem nome.In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.
Para obter mais informações, consulte _ hash MAP (STL/CLR), hash _ Multimap (STL/CLR), _ conjunto de hash (STL/CLR)e hash _ multiconjunto (STL/CLR).For more information, see hash_map (STL/CLR), hash_multimap (STL/CLR), hash_set (STL/CLR), and hash_multiset (STL/CLR).
Propriedades
| Count |
Obtém o número de elementos contidos no ICollection.Gets the number of elements contained in the ICollection. (Herdado de ICollection) |
| IsSynchronized |
Obtém um valor que indica se o acesso à ICollection é sincronizado (thread-safe).Gets a value indicating whether access to the ICollection is synchronized (thread safe). (Herdado de ICollection) |
| SyncRoot |
Obtém um objeto que pode ser usado para sincronizar o acesso ao ICollection.Gets an object that can be used to synchronize access to the ICollection. (Herdado de ICollection) |
Métodos
| begin(ContainerBidirectionalIterator<TValue>) |
Designa o início da sequência controlada.Designates the beginning of the controlled sequence. |
| clear() |
Remove todos os elementos do contêiner.Removes all elements from the container. |
| Clone() |
Cria um novo objeto que é uma cópia da instância atual.Creates a new object that is a copy of the current instance. (Herdado de ICloneable) |
| CopyTo(Array, Int32) |
Copia os elementos do ICollection para um Array, começando em um determinado índice Array.Copies the elements of the ICollection to an Array, starting at a particular Array index. (Herdado de ICollection) |
| count(TKey) |
Localiza o número de elementos que correspondem a uma chave especificada.Finds the number of elements that match a specified key. |
| empty() |
Testa se não há elementos presentes no contêiner.Tests whether no elements are present in the container. |
| end(ContainerBidirectionalIterator<TValue>) |
Designa o fim da sequência controlada.Designates the end of the controlled sequence. |
| equal_range(GenericPair<ContainerBidirectionalIterator<TValue>,ContainerBidirectionalIterator<TValue>>, TKey) |
Localiza o intervalo que corresponde a uma chave especificada.Finds the range that matches a specified key. |
| erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Remove do contêiner o elemento especificado pelo iterador fornecido.Removes from the container the element that is specified by the given iterator. |
| erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>) |
Remove do contêiner os elementos entre os iteradores especificados.Removes from the container the elements between the specified iterators. |
| erase(TKey) |
Remove os elementos do contêiner que corresponde à chave especificada.Removes elements from the container that match the specified key. |
| find(ContainerBidirectionalIterator<TValue>, TKey) |
Localiza um elemento que corresponde a uma chave especificada.Finds an element that matches a specified key. |
| get_generation() |
Obtém a geração de alteração atual do contêiner subjacente.Gets the current change generation of the underlying container. (Herdado de IBidirectionalContainer<TValue>) |
| GetEnumerator() |
Retorna um enumerador que itera em uma coleção.Returns an enumerator that iterates through a collection. (Herdado de IEnumerable) |
| insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue) |
Adiciona o elemento fornecido ao contêiner.Adds the given element to the container. |
| insert(GenericPair<ContainerBidirectionalIterator<TValue>,Boolean>, TValue) |
Adiciona o valor fornecido ao contêiner.Adds the given value to the container. |
| insert(IEnumerable<TValue>) |
Adiciona a enumeração fornecida ao contêiner.Adds the given enumeration to the container. |
| insert(IInputIterator<TValue>, IInputIterator<TValue>) |
Adiciona ao contêiner os elementos especificados pelos iteradores fornecidos.Adds to the container the elements specified by the given iterators. |
| key_comp() |
Retorna o delegado de ordenação usado para ordenar a sequência controlada.Returns the ordering delegate that is used to order the controlled sequence. Use-o para comparar duas chaves.You use it to compare two keys. |
| lower_bound(ContainerBidirectionalIterator<TValue>, TKey) |
Localiza o início do intervalo de elementos que correspondem a uma chave especificada.Finds the beginning of the range of elements that match a specified key. |
| rbegin(ReverseBidirectionalIterator<TValue>) |
Designa o início da sequência controlada invertida.Designates the beginning of the reversed controlled sequence. |
| rend(ReverseBidirectionalIterator<TValue>) |
Designa o fim da sequência controlada invertida.Designates the end of the reversed controlled sequence. |
| size() |
Conta o número de elementos no contêiner.Counts the number of elements in the container. |
| swap(ITree<TKey,TValue>) |
Alterna o conteúdo de dois contêineres.Swaps the contents of two containers. |
| upper_bound(ContainerBidirectionalIterator<TValue>, TKey) |
Localiza o final do intervalo de elementos que correspondem a uma chave especificada.Finds the end of the range of elements that match a specified key. |
| value_comp() |
Retorna o delegado de ordenação usado para ordenar a sequência controlada.Returns the ordering delegate that is used to order the controlled sequence. |
Métodos de Extensão
| Cast<TResult>(IEnumerable) |
Converte os elementos de um IEnumerable para o tipo especificado.Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
Filtra os elementos de um IEnumerable com base em um tipo especificado.Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
Habilita a paralelização de uma consulta.Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
Converte um IEnumerable em um IQueryable.Converts an IEnumerable to an IQueryable. |