blob: 1801c1e3b2ff96aa56f701c3ed3679c3e6667445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef ITERATOR_H
#define ITERATOR_H
#include <iostream>
#include <string>
using namespace std;
class Iterator
{
public:
virtual ~Iterator() {}
virtual string getExactTypeName() const {
return "Iterator";
}
virtual int increment() {
cerr << "Warning: increment() not implemented" << endl;
return 0;
}
virtual int decrement() {
cerr << "Warning: decrement() not implemented" << endl;
return 0;
}
virtual bool isBegin() const {
cerr << "Warning: isBegin() not implemented" << endl;
return false;
}
virtual bool isEnd() const {
cerr << "Warning: isEnd() not implemented" << endl;
return false;
}
};
#endif // ITERATOR_H
|