#ifndef ITERATOR_H #define ITERATOR_H #include #include using namespace std; class Iterator { public: virtual ~Iterator() {} virtual string getExactTypeName() const { return "Iterator"; } virtual void increment() { cerr << "Warning: method increment() not implemented" << endl; } virtual void decrement() { cerr << "Warning: method decrement() not implemented" << endl; } virtual bool isBegin() const { cerr << "Warning: method isBegin() not implemented" << endl; return false; } virtual bool isEnd() const { cerr << "Warning: method isEnd() not implemented" << endl; return false; } }; #endif // ITERATOR_H