ContainerBidirectionalIterator<TValue> Classe
Definição
Define um iterador que pode acessar elementos em um contêiner da direção para frente usando o operador de incremento e na direção para trás usando o operador de decremento.Defines an iterator that can access elements in a container in the forward direction by using the increment operator and in the backward direction by using the decrement operator. O elemento para o qual o iterador aponta pode ser gravado e lido qualquer número de vezes.The element that the iterator points to can be both written to and read from any number of times. Iteradores bidirecionais podem ser usados em qualquer lugar em que um iterador de entrada ou de saída seja necessário.Bidirectional iterators can be used anywhere that an input or output iterator is required.
generic <typename TValue>
public ref class ContainerBidirectionalIterator : Microsoft::VisualC::StlClr::Generic::IBidirectionalIterator<TValue>
public class ContainerBidirectionalIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IBidirectionalIterator<TValue>
type ContainerBidirectionalIterator<'Value> = class
interface IBidirectionalIterator<'Value>
Public Class ContainerBidirectionalIterator(Of TValue)
Implements IBidirectionalIterator(Of TValue)
Parâmetros de tipo
- TValue
O tipo de um elemento na sequência controlada.The type of an element in the controlled sequence.
- Herança
-
ContainerBidirectionalIterator<TValue>
- 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.
Construtores
| ContainerBidirectionalIterator<TValue>() |
Aloca e inicializa um novo objeto ContainerBidirectionalIterator<TValue>.Allocates and initializes a new ContainerBidirectionalIterator<TValue> object. |
| ContainerBidirectionalIterator<TValue>(ContainerBidirectionalIterator<TValue>) |
Aloca e inicializa um novo objeto ContainerBidirectionalIterator<TValue> de um objeto ContainerBidirectionalIterator<TValue> existente.Allocates and initializes a new ContainerBidirectionalIterator<TValue> object from an existing ContainerBidirectionalIterator<TValue> object. |
| ContainerBidirectionalIterator<TValue>(INode<TValue>) |
Aloca e inicializa um novo objeto ContainerBidirectionalIterator<TValue> que aponta para o nó determinado.Allocates and initializes a new ContainerBidirectionalIterator<TValue> object that points to the given node. |
Métodos
| Clone() |
Retorna uma cópia do objeto ContainerBidirectionalIterator<TValue> atual.Returns a copy of the current ContainerBidirectionalIterator<TValue> object. |
| container() |
Obtém o contêiner que o iterador está atravessando.Gets the container that the iterator is traversing. |
| equal_to(ContainerBidirectionalIterator<TValue>) |
Determina se o objeto ContainerBidirectionalIterator<TValue> determinado é o mesmo que o objeto ContainerBidirectionalIterator<TValue> atual.Determines whether the given ContainerBidirectionalIterator<TValue> object is the same as the current ContainerBidirectionalIterator<TValue> object. |
| equal_to(IInputIterator<TValue>) |
Determina se o objeto IInputIterator<TValue> determinado é o mesmo que o objeto ContainerBidirectionalIterator<TValue> atual.Determines if the given IInputIterator<TValue> object is the same as the current ContainerBidirectionalIterator<TValue> object. |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| get_bias() |
Obtém o desvio do iterador.Gets the bias of the iterator. O desvio é o deslocamento do iterador do elemento zero.The bias is the offset of the iterator from element zero. |
| get_cref() |
Retorna uma referência constante ao elemento para o qual o iterador está apontando no momento.Returns a constant reference to the element that the iterator is currently pointing to. |
| get_node() |
Obtém o nó, ou elemento, para o qual o iterador está apontando.Gets the node, or element, that the iterator is pointing to. |
| get_ref() |
Retorna uma referência ao elemento para o qual o iterador está apontando no momento.Returns a reference to the element that the iterator is currently pointing to. |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| next() |
Incrementa o iterador para a próxima posição no contêiner subjacente ou para a primeira posição além do fim do contêiner se o contêiner foi atravessado completamente.Increments the iterator to the next position in the underlying container, or to the first position beyond the end of container if the container has been completely traversed. |
| prev() |
Posiciona o iterador para o elemento imediatamente antes do elemento atual.Positions the iterator to the element immediately before the current element. |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
| valid() |
Determina se o iterador é válido e pode ser usado com segurança para atravessar o contêiner subjacente.Determines whether the iterator is valid and can be safely used to traverse the underlying container. |
Operadores
| Assign(ContainerBidirectionalIterator<TValue>) |
Atribui o objeto ContainerBidirectionalIterator<TValue> determinado ao objeto atual.Assigns the given ContainerBidirectionalIterator<TValue> object to the current object. |
| Decrement(ContainerBidirectionalIterator<TValue>) |
Diminui o iterador por um elemento.Decrements the iterator by one element. Essa é a versão de prefixo do operador de decremento.This is the prefix version of the decrement operator. |
| Decrement(Int32, Int32) |
Diminui o iterador por um elemento.Decrements the iterator by one element. Essa é a versão pós-correção do operador de decremento.This is the postfix version of the decrement operator. |
| Equality(ContainerBidirectionalIterator<TValue>) |
Determina se o objeto ContainerBidirectionalIterator<TValue> determinado é o mesmo que o objeto ContainerBidirectionalIterator<TValue> atual.Determines whether the given ContainerBidirectionalIterator<TValue> object is the same as the current ContainerBidirectionalIterator<TValue> object. |
| Equality(IInputIterator<TValue>) |
Determina se o objeto IInputIterator<TValue> determinado é o mesmo que o objeto ContainerBidirectionalIterator<TValue> atual.Determines whether the given IInputIterator<TValue> object is the same as the current ContainerBidirectionalIterator<TValue> object. |
| Implicit |
Converte um ContainerBidirectionalIterator<TValue> em um IBidirectionalIterator<TValue>.Converts a ContainerBidirectionalIterator<TValue> to an IBidirectionalIterator<TValue>. |
| Increment(ContainerBidirectionalIterator<TValue>) |
Incrementa o iterador por um elemento.Increments the iterator by one element. Esta é a versão de prefixo do operador de incremento.This is the prefix version of the increment operator. |
| Increment(Int32, Int32) |
Incrementa o iterador por um elemento.Increments the iterator by one element. Essa é a versão pós-correção do operador de incremento.This is the postfix version of the increment operator. |
| Inequality(ContainerBidirectionalIterator<TValue>) |
Determina se o objeto ContainerBidirectionalIterator<TValue> determinado é diferente do objeto ContainerBidirectionalIterator<TValue> atual.Determines whether the given ContainerBidirectionalIterator<TValue> object differs from the current ContainerBidirectionalIterator<TValue> object. |
| Inequality(IInputIterator<TValue>) |
Determina se o objeto IInputIterator<TValue> determinado é diferente do objeto ContainerBidirectionalIterator<TValue> atual.Determines whether the given IInputIterator<TValue> object differs from the current ContainerBidirectionalIterator<TValue> object. |
| MemberSelection(ContainerBidirectionalIterator<TValue>) |
Retorna o elemento para o qual o iterador está apontando no momento.Returns the element that the iterator is currently pointing to. |
| PointerDereference(ContainerBidirectionalIterator<TValue>) |
Retorna o elemento para o qual o iterador está apontando no momento.Returns the element that the iterator is currently pointing to. |