ContainerBidirectionalIterator(TValue) Class

ContainerBidirectionalIterator<TValue> Class

 

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. The element that the iterator points to can be both written to and read from any number of times. Bidirectional iterators can be used anywhere that an input or output iterator is required.

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

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

public class ContainerBidirectionalIterator<TValue> : IBidirectionalIterator<TValue>

Type Parameters

TValue

The type of an element in the controlled sequence.

NameDescription
System_CAPS_pubmethodContainerBidirectionalIterator<TValue>()

Allocates and initializes a new ContainerBidirectionalIterator<TValue> object.

System_CAPS_pubmethodContainerBidirectionalIterator<TValue>(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_pubmethodContainerBidirectionalIterator<TValue>(INode<TValue>)

Allocates and initializes a new ContainerBidirectionalIterator<TValue> object that points to the given node.

NameDescription
System_CAPS_pubmethodClone()

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

System_CAPS_pubmethodcontainer()

Gets the container that the iterator is traversing.

System_CAPS_pubmethodequal_to(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_pubmethodequal_to(IInputIterator<TValue>)

Determines if the given IInputIterator<TValue> object is the same as the current ContainerBidirectionalIterator<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_protmethodMemberwiseClone()

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

System_CAPS_pubmethodnext()

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.

System_CAPS_pubmethodprev()

Positions the iterator to the element immediately before 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_puboperatorAssign(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_puboperatorDecrement(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_puboperatorDecrement(ContainerBidirectionalIterator<TValue>, Int32)

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

System_CAPS_puboperatorEquality(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_puboperatorEquality(IInputIterator<TValue>)

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

System_CAPS_puboperatorImplicit(IBidirectionalIterator<TValue>)

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

System_CAPS_puboperatorIncrement(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_puboperatorIncrement(ContainerBidirectionalIterator<TValue>, Int32)

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

System_CAPS_puboperatorInequality(ContainerBidirectionalIterator<TValue>)

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

System_CAPS_puboperatorInequality(IInputIterator<TValue>)

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

System_CAPS_puboperatorSystem_CAPS_staticMemberSelection(ContainerBidirectionalIterator<TValue>)

Returns the element that the iterator is currently pointing to.

System_CAPS_puboperatorSystem_CAPS_staticPointerDereference(ContainerBidirectionalIterator<TValue>)

Returns the element that the iterator is currently pointing to.

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:
© 2016 Microsoft