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()

反復子のバイアスを取得します。 バイアスは、要素 0 からの反復子のオフセットです。

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>)

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

適用対象