ConstContainerRandomAccessIterator<TValue> クラス
定義
operator++
を呼び出して位置を 1 つ前に進める操作、operator--
を呼び出して位置を 1 つ後に戻す操作、operator[]
を使用して 1 つの要素にアクセスする操作、ポインター演算を使用して 1 つの要素にアクセスする操作をサポートする反復子を提供します。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. 反復子が指す要素は変更できません。The element pointed to by the iterator cannot be modified.
generic <typename TValue>
public ref class ConstContainerRandomAccessIterator : Microsoft::VisualC::StlClr::Generic::IRandomAccessIterator<TValue>
public class ConstContainerRandomAccessIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IRandomAccessIterator<TValue>
type ConstContainerRandomAccessIterator<'Value> = class
interface IRandomAccessIterator<'Value>
Public Class ConstContainerRandomAccessIterator(Of TValue)
Implements IRandomAccessIterator(Of TValue)
型パラメーター
- TValue
被制御シーケンス内の要素の型。The type of an element in the controlled sequence.
- 継承
-
ConstContainerRandomAccessIterator<TValue>
- 実装
注釈
いくつかのメソッド (特に演算子など) では、パラメーター名を特定せずに、パラメーターの型を宣言します。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. これらのメソッドに関するドキュメントでは、 __unnamed0 は無名パラメーターを表すプレースホルダーです。In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.
コンストラクター
プロパティ
Item[Int32] |
コンテナー内の指定の位置にある要素にアクセスします。Accesses the element at the given position in the container. |
メソッド
Clone() |
現在の ConstContainerRandomAccessIterator<TValue> オブジェクトのコピーを作成します。Creates a copy of the current ConstContainerRandomAccessIterator<TValue> object. |
container() |
反復子が走査するコンテナーを取得します。Gets the container that the iterator is traversing. |
distance(ConstContainerRandomAccessIterator<TValue>) |
現在の反復子が指している要素と指定の反復子が指している要素の距離を確認します。Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to. |
distance(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. |
equal_to(ConstContainerRandomAccessIterator<TValue>) |
指定の ConstContainerRandomAccessIterator<TValue> オブジェクトが現在の ConstContainerRandomAccessIterator<TValue> オブジェクトと同じかどうかを判断します。Determines whether the given ConstContainerRandomAccessIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object. |
equal_to(IInputIterator<TValue>) |
指定の IInputIterator<TValue> オブジェクトが現在の ConstContainerRandomAccessIterator<TValue> オブジェクトと同じかどうかを判断します。Determines whether the given IInputIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object. |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
get_bias() |
反復子のバイアスを取得します。Gets the bias of the iterator. バイアスとは、要素ゼロを基準とした反復子のオフセットです。The bias is the offset of the iterator from element zero. |
get_cref() |
反復子が現在指している要素への定数参照を返します。Returns a constant reference to the element that the iterator is currently pointing to. |
get_node() |
反復子が指しているノード、つまり要素を取得します。Gets the node, or element, that the iterator is pointing to. |
get_ref() |
反復子が現在指している要素への参照を返します。Returns a reference to the element that the iterator is currently pointing to. |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
less_than(ConstContainerRandomAccessIterator<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. |
less_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. |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
move(Int32) |
指定の要素数だけ反復子を移動します。Moves the iterator by the given number of elements. |
next() |
基になるコンテナー内の次の位置に反復子をインクリメントします。コンテナーの走査が完了した場合は、コンテナーの末尾を越えた最初の位置にインクリメントします。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. |
prev() |
現在の要素の直前の要素に反復子を移動します。Positions the iterator to the element immediately before the current element. |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |
valid() |
反復子が有効で、基になるコンテナーの走査のために安全に使用できるかどうかを判断します。Determines whether the iterator is valid and can be safely used to traverse the underlying container. |
演算子
Addition(ConstContainerRandomAccessIterator<TValue>, Int32) |
指定の要素数だけ反復子をインクリメントします。Increments the iterator by the given number of elements. 加算演算子の右辺には整数のパラメーターを指定します。The integer parameter is specified on the right side of the addition operator. |
Addition(ConstContainerRandomAccessIterator<TValue>, Int32, ConstContainerRandomAccessIterator<TValue>) |
指定の要素数だけ反復子をインクリメントします。Increments the iterator by the given number of elements. 加算演算子の左辺には整数のパラメーターを指定します。The integer parameter is specified on the left side of the addition operator. |
Assign(ConstContainerRandomAccessIterator<TValue>) |
指定の ConstContainerRandomAccessIterator<TValue> オブジェクトを現在のオブジェクトに代入します。Assigns the given ConstContainerRandomAccessIterator<TValue> object to the current object. |
Assign(ContainerRandomAccessIterator<TValue>) |
指定の ContainerRandomAccessIterator<TValue> オブジェクトを現在のオブジェクトに代入します。Assigns the given ContainerRandomAccessIterator<TValue> object to the current object. |
Decrement(ConstContainerRandomAccessIterator<TValue>) |
1 要素ずつ反復子をデクリメントします。Decrements the iterator by one element. これは前置バージョンのデクリメント演算子です。This is the prefix version of the decrement operator. |
Decrement(Int32, Int32) |
1 要素ずつ反復子をデクリメントします。Decrements the iterator by one element. これは、後置バージョンのデクリメント演算子です。This is the postfix version of the decrement operator. |
Equality(ConstContainerRandomAccessIterator<TValue>) |
指定の ConstContainerRandomAccessIterator<TValue> オブジェクトが現在の ConstContainerRandomAccessIterator<TValue> オブジェクトと同じかどうかを判断します。Determines whether the given ConstContainerRandomAccessIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object. |
Equality(IInputIterator<TValue>) |
指定の IInputIterator<TValue> オブジェクトが現在の ConstContainerRandomAccessIterator<TValue> オブジェクトと同じかどうかを判断します。Determines whether the given IInputIterator<TValue> object is the same as the current ConstContainerRandomAccessIterator<TValue> object. |
GreaterThan(ConstContainerRandomAccessIterator<TValue>) |
左辺の反復子の位置が右辺に指定されている反復子の位置より大きいかどうかを判断します。Determines whether the position of the left-side iterator is greater than the position of the given right-side iterator. |
GreaterThan(IRandomAccessIterator<TValue>, ConstContainerRandomAccessIterator<TValue>) |
左辺に指定されている反復子の位置が右辺に指定されている反復子の位置より大きいかどうかを判断します。Determines whether the position of the given left-side iterator is greater than the position of the given right-side iterator. |
GreaterThanOrEqual(ConstContainerRandomAccessIterator<TValue>) |
左辺の反復子の位置が右辺に指定されている反復子の位置以上であるかどうかを判断します。Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator. |
GreaterThanOrEqual(IRandomAccessIterator<TValue>) |
左辺の反復子の位置が右辺に指定されている反復子の位置以上であるかどうかを判断します。Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator. |
Implicit |
ConstContainerRandomAccessIterator<TValue> を IRandomAccessIterator<TValue> に変換します。Converts a ConstContainerRandomAccessIterator<TValue> to an IRandomAccessIterator<TValue>. |
Increment(ConstContainerRandomAccessIterator<TValue>) |
1 要素ずつ反復子をインクリメントします。Increments the iterator by one element. これは前置バージョンのインクリメント演算子です。This is the prefix version of the increment operator. |
Increment(Int32, Int32) |
1 要素ずつ反復子をインクリメントします。Increments the iterator by one element. これは、後置バージョンのインクリメント演算子です。This is the postfix version of the increment operator. |
Inequality(ConstContainerRandomAccessIterator<TValue>) |
指定の ConstContainerRandomAccessIterator<TValue> オブジェクトが現在の ConstContainerRandomAccessIterator<TValue> オブジェクトと異なるかどうかを判断します。Determines whether the given ConstContainerRandomAccessIterator<TValue> object differs from the current ConstContainerRandomAccessIterator<TValue> object. |
Inequality(IInputIterator<TValue>) |
指定の IInputIterator<TValue> オブジェクトが現在の ConstContainerRandomAccessIterator<TValue> オブジェクトと異なるかどうかを判断します。Determines whether the given IInputIterator<TValue> object differs from the current ConstContainerRandomAccessIterator<TValue> object. |
LessThan(ConstContainerRandomAccessIterator<TValue>) |
左辺の反復子の位置が右辺に指定されている反復子の位置より小さいかどうかを判断します。Determines whether the position of the left-side iterator is less than the position of the given right-side iterator. |
LessThan(IRandomAccessIterator<TValue>) |
左辺の反復子の位置が右辺に指定されている反復子の位置より小さいかどうかを判断します。Determines whether the position of the left-side iterator is less than the position of the given right-side iterator. |
LessThanOrEqual(ConstContainerRandomAccessIterator<TValue>) |
左辺の反復子の位置が右辺に指定されている反復子の位置以下であるかどうかを判断します。Determines whether the position of the left-side iterator is less than or equal to the position of the given right-side iterator. |
LessThanOrEqual(IRandomAccessIterator<TValue>, ConstContainerRandomAccessIterator<TValue>) |
左辺に指定されている反復子の位置が右辺に指定されている反復子の位置より小さいかどうかを判断します。Determines whether the position of the given left-side iterator is less than the position of the given right-side iterator. |
MemberSelection(ConstContainerRandomAccessIterator<TValue>) |
反復子が現在指している要素への参照を返します。Returns the element that the iterator is currently pointing to. |
PointerDereference(ConstContainerRandomAccessIterator<TValue>) |
反復子が現在指している要素への参照を返します。Returns the element that the iterator is currently pointing to. |
Subtraction(ConstContainerRandomAccessIterator<TValue>, Int32) |
指定の要素数だけ反復子をデクリメントします。Decrements the iterator by the given number of elements. 加算演算子の右辺には整数のパラメーターを指定します。The integer parameter is specified on the right side of the addition operator. |
Subtraction(IRandomAccessIterator<TValue>) |
2 つの反復子の差を確認します。Determines the difference between two iterators. |