System::Collections::Generic::BaseEnumerator クラス
コンテンツ
[
隠れる
]BaseEnumerator class
Enumerator definition to wrap STL-styled types for C#-styled usage. Makes no assertions on container structure except for existance of sequental iterator. Uses begin() and end() functions. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
template<typename Container,typename Element>class BaseEnumerator : public System::Collections::Generic::IEnumerator<Element>
| パラメーター | 説明 |
|---|---|
| コンテナ | STL 形式のコンテナ型です。 |
| Element | 要素型。 |
メソッド
| メソッド | 説明 |
|---|---|
| BaseEnumerator(const Object::ptr&, Container&) | イテレータを初期化します。 |
| IsValid() const | MoveNext() が呼び出されたか、終了に達していないかをチェックします。 |
| MoveNext() override | 列挙子スタイルのインクリメント。 |
| Reset() override | 要素を再列挙できるように列挙子をリセットします。 |
参照
- Class IEnumerator
- Namespace System::Collections::Generic
- Library Aspose.Page for C++