ConstContainerRandomAccessIterator<TValue> Classe

Definição

Fornece um iterador compatível com as seguintes operações: mover uma posição para frente chamando operador++, mover uma posição para trás chamando operador--, acessar um elemento usando operador[] e acessar um elemento usando a aritmética de ponteiro.Provides an iterator that supports the following operations: moving forward one position by calling operator++, moving backward one position by calling operator--, accessing an element by using operator[], and accessing an element by using pointer arithmetic. O elemento apontado pelo iterador não pode ser modificado.The element pointed to by the iterator cannot be modified.

generic <typename TValue>
public ref class ConstContainerRandomAccessIterator : Microsoft::VisualC::StlClr::Generic::IRandomAccessIterator<TValue>
public class ConstContainerRandomAccessIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IRandomAccessIterator<TValue>
type ConstContainerRandomAccessIterator<'Value> = class
    interface IRandomAccessIterator<'Value>
Public Class ConstContainerRandomAccessIterator(Of TValue)
Implements IRandomAccessIterator(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
ConstContainerRandomAccessIterator<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

ConstContainerRandomAccessIterator<TValue>()

Aloca e inicializa um novo objeto ConstContainerRandomAccessIterator<TValue>.Allocates and initializes a new ConstContainerRandomAccessIterator<TValue> object.

ConstContainerRandomAccessIterator<TValue>(ConstContainerRandomAccessIterator<TValue>)

Aloca e inicializa um novo objeto ConstContainerRandomAccessIterator<TValue> de um objeto ConstContainerRandomAccessIterator<TValue> existente.Allocates and initializes a new ConstContainerRandomAccessIterator<TValue> object from an existing ConstContainerRandomAccessIterator<TValue> object.

ConstContainerRandomAccessIterator<TValue>(ContainerRandomAccessIterator<TValue>)

Aloca e inicializa um novo objeto ConstContainerRandomAccessIterator<TValue> de um objeto ContainerRandomAccessIterator<TValue> existente.Allocates and initializes a new ConstContainerRandomAccessIterator<TValue> object from an existing ContainerRandomAccessIterator<TValue> object.

ConstContainerRandomAccessIterator<TValue>(IRandomAccessContainer<TValue>, Int32)

Aloca e inicializa um novo objeto ConstContainerRandomAccessIterator<TValue> de um objeto IRandomAccessContainer<TValue> existente.Allocates and initializes a new ConstContainerRandomAccessIterator<TValue> object from an existing IRandomAccessContainer<TValue> object.

Propriedades

Item[Int32]

Acessa o elemento na posição determinada no contêiner.Accesses the element at the given position in the container.

Métodos

Clone()

Cria uma cópia do objeto ConstContainerRandomAccessIterator<TValue> atual.Creates a copy of the current ConstContainerRandomAccessIterator<TValue> object.

container()

Obtém o contêiner que o iterador está atravessando.Gets the container that the iterator is traversing.

distance(ConstContainerRandomAccessIterator<TValue>)

Determina a distância entre o elemento que aponta para o qual o iterador atual está apontando e o elemento para o qual o iterador determinado está apontando.Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.

distance(IRandomAccessIterator<TValue>)

Determina a distância entre o elemento que aponta para o qual o iterador atual está apontando e o elemento para o qual o iterador determinado está apontando.Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.

equal_to(ConstContainerRandomAccessIterator<TValue>)

Determina se o objeto ConstContainerRandomAccessIterator<TValue> determinado é o mesmo que o objeto ConstContainerRandomAccessIterator<TValue> atual.Determines whether the given ConstContainerRandomAccessIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object.

equal_to(IInputIterator<TValue>)

Determina se o objeto IInputIterator<TValue> determinado é o mesmo que o objeto ConstContainerRandomAccessIterator<TValue> atual.Determines whether the given IInputIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<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)
less_than(ConstContainerRandomAccessIterator<TValue>)

Determina se o iterador atual está apontando para um elemento no contêiner que está antes do elemento para o qual o iterador determinado aponta.Determines whether the current iterator is pointing to an element in the container that is before the element that the given iterator points to.

less_than(IRandomAccessIterator<TValue>)

Determina se o iterador atual está apontando para um elemento no contêiner que está antes do elemento para o qual o iterador determinado aponta.Determines whether the current iterator is pointing to an element in the container that is before the element that the given iterator points to.

MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
move(Int32)

Move o iterador pelo número determinado de elementos.Moves the iterator by the given number of elements.

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

Addition(ConstContainerRandomAccessIterator<TValue>, Int32)

Incrementa o iterador no número determinado de elementos.Increments the iterator by the given number of elements. O parâmetro numérico inteiro é especificado no lado direito do operador de adição.The integer parameter is specified on the right side of the addition operator.

Addition(ConstContainerRandomAccessIterator<TValue>, Int32, ConstContainerRandomAccessIterator<TValue>)

Incrementa o iterador no número determinado de elementos.Increments the iterator by the given number of elements. O parâmetro numérico inteiro é especificado no lado esquerdo do operador de adição.The integer parameter is specified on the left side of the addition operator.

Assign(ConstContainerRandomAccessIterator<TValue>)

Atribui o objeto ConstContainerRandomAccessIterator<TValue> determinado ao objeto atual.Assigns the given ConstContainerRandomAccessIterator<TValue> object to the current object.

Assign(ContainerRandomAccessIterator<TValue>)

Atribui o objeto ContainerRandomAccessIterator<TValue> determinado ao objeto atual.Assigns the given ContainerRandomAccessIterator<TValue> object to the current object.

Decrement(ConstContainerRandomAccessIterator<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(ConstContainerRandomAccessIterator<TValue>)

Determina se o objeto ConstContainerRandomAccessIterator<TValue> determinado é o mesmo que o objeto ConstContainerRandomAccessIterator<TValue> atual.Determines whether the given ConstContainerRandomAccessIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object.

Equality(IInputIterator<TValue>)

Determina se o objeto IInputIterator<TValue> determinado é o mesmo que o objeto ConstContainerRandomAccessIterator<TValue> atual.Determines whether the given IInputIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object.

GreaterThan(ConstContainerRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo é maior que a posição do iterador no lado direito determinado.Determines whether the position of the left-side iterator is greater than the position of the given right-side iterator.

GreaterThan(IRandomAccessIterator<TValue>, ConstContainerRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo determinado é maior que a posição do iterador no lado direito determinado.Determines whether the position of the given left-side iterator is greater than the position of the given right-side iterator.

GreaterThanOrEqual(ConstContainerRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo é maior ou igual à posição do iterador no lado direito determinado.Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator.

GreaterThanOrEqual(IRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo é maior ou igual à posição do iterador no lado direito determinado.Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator.

Implicit

Converte um ConstContainerRandomAccessIterator<TValue> em um IRandomAccessIterator<TValue>.Converts a ConstContainerRandomAccessIterator<TValue> to an IRandomAccessIterator<TValue>.

Increment(ConstContainerRandomAccessIterator<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(ConstContainerRandomAccessIterator<TValue>)

Determina se o objeto ConstContainerRandomAccessIterator<TValue> determinado é diferente do objeto ConstContainerRandomAccessIterator<TValue> atual.Determines whether the given ConstContainerRandomAccessIterator<TValue> object differs from the current ConstContainerRandomAccessIterator<TValue> object.

Inequality(IInputIterator<TValue>)

Determina se o objeto IInputIterator<TValue> determinado é diferente do objeto ConstContainerRandomAccessIterator<TValue> atual.Determines whether the given IInputIterator<TValue> object differs from the current ConstContainerRandomAccessIterator<TValue> object.

LessThan(ConstContainerRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo é menor que a posição do iterador no lado direito determinado.Determines whether the position of the left-side iterator is less than the position of the given right-side iterator.

LessThan(IRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo é menor que a posição do iterador no lado direito determinado.Determines whether the position of the left-side iterator is less than the position of the given right-side iterator.

LessThanOrEqual(ConstContainerRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo é menor ou igual à posição do iterador no lado direito determinado.Determines whether the position of the left-side iterator is less than or equal to the position of the given right-side iterator.

LessThanOrEqual(IRandomAccessIterator<TValue>, ConstContainerRandomAccessIterator<TValue>)

Determina se a posição do iterador no lado esquerdo determinado é menor que a posição do iterador no lado direito determinado.Determines whether the position of the given left-side iterator is less than the position of the given right-side iterator.

MemberSelection(ConstContainerRandomAccessIterator<TValue>)

Retorna o elemento para o qual o iterador está apontando no momento.Returns the element that the iterator is currently pointing to.

PointerDereference(ConstContainerRandomAccessIterator<TValue>)

Retorna o elemento para o qual o iterador está apontando no momento.Returns the element that the iterator is currently pointing to.

Subtraction(ConstContainerRandomAccessIterator<TValue>, Int32)

Decrementa o iterador pelo número determinado de elementos.Decrements the iterator by the given number of elements. O parâmetro numérico inteiro é especificado no lado direito do operador de adição.The integer parameter is specified on the right side of the addition operator.

Subtraction(IRandomAccessIterator<TValue>)

Determina a diferença entre dois iteradores.Determines the difference between two iterators.

Aplica-se a