xtd 0.2.0
Loading...
Searching...
No Matches
ienumerator.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../interface.h"
6#include <iterator>
7
9namespace xtd {
11 namespace collections {
13 namespace generic {
57 template<typename type_t>
59 public:
61
103 virtual const type_t& current() const = 0;
105
107
146 virtual bool move_next() = 0;
147
186 virtual void reset() = 0;
188 };
189 }
190 }
191}
Supports a simple iteration over a generic collection.
Definition ienumerator.h:58
virtual bool move_next()=0
Advances the enumerator to the next element of the collection.
virtual const type_t & current() const =0
Gets the element in the collection at the current position of the enumerator.
virtual void reset()=0
Sets the enumerator to its initial position, which is before the first element in the collection.
#define interface_
This keyword is use to represent an interface.
Definition interface.h:58
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10