ReverseBidirectionalIterator<TValue> クラス

定義

コンテナー内の要素に逆方向にアクセスする反復子を定義します。 要素は、デクリメント演算子を使用して前方方向に、インクリメント演算子を使用して後方方向にアクセスできます。 反復子が指す要素は、書き込みと読み取りの両方を何度でも実行できます。 逆順双方向反復子は、反転入力反復子または逆出力反復子が必要な任意の場所で使用できます。

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)

型パラメーター

TValue

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

継承
ReverseBidirectionalIterator<TValue>
実装

注釈

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

コンストラクター

名前 説明
ReverseBidirectionalIterator<TValue>()

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

ReverseBidirectionalIterator<TValue>(IBidirectionalIterator<TValue>)

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

ReverseBidirectionalIterator<TValue>(ReverseBidirectionalIterator<TValue>)

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

メソッド

名前 説明
base()

ReverseBidirectionalIterator<TValue> オブジェクトの基になる基本反復子を取得します。

Clone()

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

container()

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

equal_to(IInputIterator<TValue>)

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

equal_to(ReverseBidirectionalIterator<TValue>)

指定した ReverseBidirectionalIterator<TValue> オブジェクトが現在の ReverseBidirectionalIterator<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(ReverseBidirectionalIterator<TValue>)

指定した ReverseBidirectionalIterator<TValue> オブジェクトを現在のオブジェクトに割り当てます。

Decrement(Int32, Int32)

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

Decrement(ReverseBidirectionalIterator<TValue>)

反復子を 1 つの要素でデクリメントします。 逆反復子のデクリメントは、通常の反復子のインクリメントと同じです。 これは、デクリメント演算子のプレフィックス バージョンです。

Equality(IInputIterator<TValue>)

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

Equality(ReverseBidirectionalIterator<TValue>)

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

Implicit

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

Increment(Int32, Int32)

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

Increment(ReverseBidirectionalIterator<TValue>)

反復子を 1 要素ずつインクリメントします。 逆反復子のインクリメントは、通常の反復子のデクリメントと同じです。 これはインクリメント演算子のプレフィックス バージョンです。

Inequality(IInputIterator<TValue>)

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

Inequality(ReverseBidirectionalIterator<TValue>)

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

MemberSelection(ReverseBidirectionalIterator<TValue>)

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

PointerDereference(ReverseBidirectionalIterator<TValue>)

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

適用対象