Επεξεργασία

Κοινή χρήση μέσω


ReverseBidirectionalIterator<TValue> Class

Definition

Defines an iterator that accesses elements in a container in the reverse direction. Elements can be accessed in the forward direction by using the decrement operator and in the backward direction by using the increment operator. The element that the iterator points to can be both written to and read from any number of times. Reverse bidirectional iterators can be used anywhere that a reverse input or reverse output iterator is required.

generic <typename TValue>
public ref class ReverseBidirectionalIterator : Microsoft::VisualC::StlClr::Generic::IBidirectionalIterator<TValue>
public class ReverseBidirectionalIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IBidirectionalIterator<TValue>
type ReverseBidirectionalIterator<'Value> = class
    interface IBidirectionalIterator<'Value>
Public Class ReverseBidirectionalIterator(Of TValue)
Implements IBidirectionalIterator(Of TValue)

Type Parameters

TValue

The type of an element in the controlled sequence.

Inheritance
ReverseBidirectionalIterator<TValue>
Implements

Remarks

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 A_0 placeholder represents the unnamed parameter.

Constructors

ReverseBidirectionalIterator<TValue>()

Allocates and initializes a new ReverseBidirectionalIterator<TValue> object.

ReverseBidirectionalIterator<TValue>(IBidirectionalIterator<TValue>)

Allocates and initializes a new ReverseBidirectionalIterator<TValue> object from an existing IBidirectionalIterator<TValue> object.

ReverseBidirectionalIterator<TValue>(ReverseBidirectionalIterator<TValue>)

Allocates and initializes a new ReverseBidirectionalIterator<TValue> object from an existing ReverseBidirectionalIterator<TValue> object.

Methods

base()

Gets the underlying base iterator for the ReverseBidirectionalIterator<TValue> object.

Clone()

Returns a copy of the current ReverseBidirectionalIterator<TValue> object.

container()

Gets the container that the iterator is traversing.

equal_to(IInputIterator<TValue>)

Determines whether the given IInputIterator<TValue> object is the same as the current ReverseBidirectionalIterator<TValue> object.

equal_to(ReverseBidirectionalIterator<TValue>)

Determines whether the given ReverseBidirectionalIterator<TValue> object is the same as the current ReverseBidirectionalIterator<TValue> object.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
get_bias()

Gets the bias of the iterator. The bias is the offset of the iterator from element zero.

get_cref()

Returns a constant reference to the element that the iterator is currently pointing to.

get_node()

Gets the node, or element, that the iterator is pointing to.

get_ref()

Returns a reference to the element that the iterator is currently pointing to.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
next()

Decrements the iterator to the previous position in the underlying container, or to the first position in front of the beginning of container if the container has been completely traversed.

prev()

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.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
valid()

Determines whether the iterator is valid and can be safely used to traverse the underlying container.

Operators

Assign(ReverseBidirectionalIterator<TValue>)

Assigns the given ReverseBidirectionalIterator<TValue> object to the current object.

Decrement(Int32, Int32)

Decrements the iterator by one element. Decrementing a reverse iterator is the same as incrementing a regular iterator. This is the postfix version of the decrement operator.

Decrement(ReverseBidirectionalIterator<TValue>)

Decrements the iterator by one element. Decrementing a reverse iterator is the same as incrementing a regular iterator. This is the prefix version of the decrement operator.

Equality(IInputIterator<TValue>)

Determines whether the given IInputIterator<TValue> object is the same as the current ReverseBidirectionalIterator<TValue> object.

Equality(ReverseBidirectionalIterator<TValue>)

Determines whether the given ReverseBidirectionalIterator<TValue> object is the same as the current ReverseBidirectionalIterator<TValue> object.

Implicit

Converts a ReverseBidirectionalIterator<TValue> to an IBidirectionalIterator<TValue>.

Increment(Int32, Int32)

Increments the iterator by one element. Incrementing a reverse iterator is the same as decrementing a regular iterator. This is the postfix version of the increment operator.

Increment(ReverseBidirectionalIterator<TValue>)

Increments the iterator by one element. Incrementing a reverse iterator is the same as decrementing a regular iterator. This is the prefix version of the increment operator.

Inequality(IInputIterator<TValue>)

Determines whether the given IInputIterator<TValue> object differs from the current ReverseBidirectionalIterator<TValue> object.

Inequality(ReverseBidirectionalIterator<TValue>)

Determines whether the given ReverseBidirectionalIterator<TValue> object differs from the current ReverseBidirectionalIterator<TValue> object.

MemberSelection(ReverseBidirectionalIterator<TValue>)

Returns the element that the iterator is currently pointing to.

PointerDereference(ReverseBidirectionalIterator<TValue>)

Returns the element that the iterator is currently pointing to.

Applies to