ReverseRandomAccessIterator<TValue> Class

 

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.

Namespace:   Microsoft.VisualC.StlClr.Generic
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

System.Object
  Microsoft.VisualC.StlClr.Generic.ReverseRandomAccessIterator<TValue>

public class ReverseRandomAccessIterator<TValue> : IRandomAccessIterator<TValue>

Type Parameters

TValue

The type of an element in the controlled sequence.

NameDescription
System_CAPS_pubmethodReverseRandomAccessIterator<TValue>()

Allocates and initializes a new ReverseRandomAccessIterator<TValue> object.

System_CAPS_pubmethodReverseRandomAccessIterator<TValue>(IRandomAccessIterator<TValue>)

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

System_CAPS_pubmethodReverseRandomAccessIterator<TValue>(ReverseRandomAccessIterator<TValue>)

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

NameDescription
System_CAPS_pubpropertyItem[Int32]

Accesses the element at the given position in the container.

NameDescription
System_CAPS_pubmethodbase()

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

System_CAPS_pubmethodClone()

Creates a copy of the current ReverseRandomAccessIterator<TValue> object.

System_CAPS_pubmethodcontainer()

Gets the container that the iterator is traversing.

System_CAPS_pubmethoddistance(IRandomAccessIterator<TValue>)

Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.

System_CAPS_pubmethoddistance(ReverseRandomAccessIterator<TValue>)

Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.

System_CAPS_pubmethodequal_to(IInputIterator<TValue>)

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

System_CAPS_pubmethodequal_to(ReverseRandomAccessIterator<TValue>)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodget_bias()

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

System_CAPS_pubmethodget_cref()

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

System_CAPS_pubmethodget_node()

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

System_CAPS_pubmethodget_ref()

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodless_than(IRandomAccessIterator<TValue>)

Determines whether the current iterator is pointing to an element in the container that is before the element that the given iterator points to.

System_CAPS_pubmethodless_than(ReverseRandomAccessIterator<TValue>)

Determines whether the current iterator is pointing to an element in the container that is before the element that the given iterator points to.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodmove(Int32)

Moves the iterator by the given number of elements.

System_CAPS_pubmethodnext()

Increments the reverse iterator to the next position in the underlying container, or to the first position in front of the beginning of container if the container has been completely traversed.

System_CAPS_pubmethodprev()

Positions the iterator to the element immediately after the current element.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodvalid()

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

NameDescription
System_CAPS_puboperatorAddition(ReverseRandomAccessIterator<TValue>, Int32)

Increments the reverse iterator by the given number of elements. The integer parameter is specified on the right side of the addition operator.

System_CAPS_puboperatorSystem_CAPS_staticAddition(ReverseRandomAccessIterator<TValue>, Int32, ReverseRandomAccessIterator<TValue>)

Increments the reverse iterator by the given number of elements. The integer parameter is specified on the left side of the addition operator.

System_CAPS_puboperatorAssign(ReverseRandomAccessIterator<TValue>)

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

System_CAPS_puboperatorDecrement(ReverseRandomAccessIterator<TValue>)

Decrements the reverse iterator by one element. This is the prefix version of the decrement operator.

System_CAPS_puboperatorDecrement(ReverseRandomAccessIterator<TValue>, Int32)

Decrements the reverse iterator by one element. This is the postfix version of the decrement operator.

System_CAPS_puboperatorEquality(ReverseRandomAccessIterator<TValue>)

Determines whether two iterators are the same object.

System_CAPS_puboperatorGreaterThan(ReverseRandomAccessIterator<TValue>)

Determines whether the position of the left-side iterator is greater than the position of the given right-side iterator.

System_CAPS_puboperatorGreaterThanOrEqual(ReverseRandomAccessIterator<TValue>)

Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator.

System_CAPS_puboperatorImplicit(IRandomAccessIterator<TValue>)

Converts a ReverseRandomAccessIterator<TValue> to an IRandomAccessIterator<TValue>.

System_CAPS_puboperatorIncrement(ReverseRandomAccessIterator<TValue>)

Increments the reverse iterator by one element. This is the prefix version of the increment operator.

System_CAPS_puboperatorIncrement(ReverseRandomAccessIterator<TValue>, Int32)

Increments the reverse iterator by one element. This is the postfix version of the increment operator.

System_CAPS_puboperatorInequality(ReverseRandomAccessIterator<TValue>)

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

System_CAPS_puboperatorLessThan(ReverseRandomAccessIterator<TValue>)

Determines whether the position of the left-side iterator is less than the position of the given right-side iterator.

System_CAPS_puboperatorLessThanOrEqual(ReverseRandomAccessIterator<TValue>)

Determines whether the position of the left-side iterator is less than or equal to the position of the given right-side iterator.

System_CAPS_puboperatorSystem_CAPS_staticMemberSelection(ReverseRandomAccessIterator<TValue>)

Returns the element that the iterator is currently pointing to.

System_CAPS_puboperatorSystem_CAPS_staticPointerDereference(ReverseRandomAccessIterator<TValue>)

Returns the element that the iterator is currently pointing to.

System_CAPS_puboperatorSubtraction(IRandomAccessIterator<TValue>)

Determines the difference between two iterators.

System_CAPS_puboperatorSubtraction(ReverseRandomAccessIterator<TValue>, Int32)

Decrements the iterator by the given number of elements. The integer parameter is specified on the right side of the subtraction operator.

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

.NET Framework
Available since 3.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: