ContainerBidirectionalIterator<TValue> クラス

定義

インクリメント演算子を使用して前方向に、またデクリメント演算子を使用して後方向にコンテナーの要素にアクセスできる反復子を定義します。 反復子が指す要素については、読み書きの両方を何回でも実行できます。 双方向反復子は、入力反復子または出力反復子が必要な場所であればどこででも使用できます。

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)

型パラメーター

TValue

被制御シーケンス内の要素の型。

継承
ContainerBidirectionalIterator<TValue>
実装

注釈

いくつかのメソッド (特に演算子など) では、パラメーター名を特定せずに、パラメーターの型を宣言します。 このようなパラメーターを、無名パラメーターと呼びます。 これらのメソッドのドキュメントでは、 A_0 プレースホルダーは名前のないパラメーターを表します。

コンストラクター

ContainerBidirectionalIterator<TValue>()

新しい ContainerBidirectionalIterator<TValue> オブジェクトを割り当て、初期化します。

ContainerBidirectionalIterator<TValue>(ContainerBidirectionalIterator<TValue>)

既存の ContainerBidirectionalIterator<TValue> オブジェクトから、新しい ContainerBidirectionalIterator<TValue> オブジェクトを割り当て、初期化します。

ContainerBidirectionalIterator<TValue>(INode<TValue>)

指定のノードを指す新しい ContainerBidirectionalIterator<TValue> オブジェクトを割り当て、初期化します。

メソッド

Clone()

現在の ContainerBidirectionalIterator<TValue> オブジェクトのコピーを返します。

container()

反復子が走査するコンテナーを取得します。

equal_to(ContainerBidirectionalIterator<TValue>)

指定の ContainerBidirectionalIterator<TValue> オブジェクトが現在の ContainerBidirectionalIterator<TValue> オブジェクトと同じかどうかを判断します。

equal_to(IInputIterator<TValue>)

指定の IInputIterator<TValue> オブジェクトが現在の ContainerBidirectionalIterator<TValue> オブジェクトと同じかどうかを判断します。

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
get_bias()

反復子のバイアスを取得します。 バイアスとは、要素ゼロを基準とした反復子のオフセットです。

get_cref()

反復子が現在指している要素への定数参照を返します。

get_node()

反復子が指しているノード、つまり要素を取得します。

get_ref()

反復子が現在指している要素への参照を返します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
next()

基になるコンテナー内の次の位置に反復子をインクリメントします。コンテナーの走査が完了した場合は、コンテナーの末尾を越えた最初の位置にインクリメントします。

prev()

現在の要素の直前の要素に反復子を移動します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
valid()

反復子が有効で、基になるコンテナーの走査のために安全に使用できるかどうかを判断します。

演算子

Assign(ContainerBidirectionalIterator<TValue>)

指定の ContainerBidirectionalIterator<TValue> オブジェクトを現在のオブジェクトに代入します。

Decrement(ContainerBidirectionalIterator<TValue>)

1 要素ずつ反復子をデクリメントします。 これは前置バージョンのデクリメント演算子です。

Decrement(Int32, Int32)

1 要素ずつ反復子をデクリメントします。 これは、後置バージョンのデクリメント演算子です。

Equality(ContainerBidirectionalIterator<TValue>)

指定の ContainerBidirectionalIterator<TValue> オブジェクトが現在の ContainerBidirectionalIterator<TValue> オブジェクトと同じかどうかを判断します。

Equality(IInputIterator<TValue>)

指定の IInputIterator<TValue> オブジェクトが現在の ContainerBidirectionalIterator<TValue> オブジェクトと同じかどうかを判断します。

Implicit

ContainerBidirectionalIterator<TValue>IBidirectionalIterator<TValue> に変換します。

Increment(ContainerBidirectionalIterator<TValue>)

1 要素ずつ反復子をインクリメントします。 これは前置バージョンのインクリメント演算子です。

Increment(Int32, Int32)

1 要素ずつ反復子をインクリメントします。 これは、後置バージョンのインクリメント演算子です。

Inequality(ContainerBidirectionalIterator<TValue>)

指定の ContainerBidirectionalIterator<TValue> オブジェクトが現在の ContainerBidirectionalIterator<TValue> オブジェクトと異なるかどうかを判断します。

Inequality(IInputIterator<TValue>)

指定の IInputIterator<TValue> オブジェクトが現在の ContainerBidirectionalIterator<TValue> オブジェクトと異なるかどうかを判断します。

MemberSelection(ContainerBidirectionalIterator<TValue>)

反復子が現在指している要素への参照を返します。

PointerDereference(ContainerBidirectionalIterator<TValue>)

反復子が現在指している要素への参照を返します。

適用対象