Supports a simple iteration over a generic collection.
Public Constructors | |
| enumerator ()=default | |
| Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class. | |
| enumerator (ptr< ienumerator< type_t > > enumerator) | |
| Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class with specified enumerator. | |
Public Properties | |
| const type_t & | current () const override |
| Gets the element in the collection at the current position of the enumerator. | |
Public Methods | |
| bool | move_next () override |
| Advances the enumerator to the next element of the collection. | |
| void | reset () override |
| Sets the enumerator to its initial position, which is before the first element in the collection. | |
Additional Inherited Members |
|
default |
Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class.
|
inline |
Initializes a new instance of the xtd::collections::generic::enumerator <type_t> class with specified enumerator.
| enumerator | The xtd::collections::generic::ienumerator <type_t> enumerator to encapsulate. |
|
inlineoverridevirtual |
Gets the element in the collection at the current position of the enumerator.
Implements xtd::collections::generic::ienumerator< type_t >.
|
inlineoverridevirtual |
Advances the enumerator to the next element of the collection.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. | xtd::invalid_operation_exception | The collection was modified after the enumerator was created. |
Implements xtd::collections::generic::ienumerator< type_t >.
|
inlineoverridevirtual |
Sets the enumerator to its initial position, which is before the first element in the collection.
| xtd::invalid_operation_exception | The collection was modified after the enumerator was created. |
| xtd::not_supported_exception | The enumerator does not support being reset. |
Implements xtd::collections::generic::ienumerator< type_t >.