00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef DeSR_Iterator_H
00025 #define DeSR_Iterator_H
00026
00027 namespace Parser {
00028
00034 template <class T>
00035 class Iterator
00036 {
00037 public:
00038 typedef T ItemType;
00039
00041 virtual bool hasNext() = 0;
00042
00044 virtual ItemType next() = 0;
00045
00047 virtual void remove() {}
00048
00049 };
00050
00051 }
00052
00053 #endif // DeSR_Iterator_H