00001 00015 #ifndef Iterator_H 00016 #define Iterator_H 00017 00018 namespace OA { 00019 00020 //-------------------------------------------------------------------- 00022 class Iterator { 00023 public: 00024 Iterator () {} 00025 virtual ~Iterator () {} 00026 // virtual operator bool () = 0; 00027 virtual bool isValid() const = 0; 00028 virtual void operator++ () = 0; 00029 void operator++ (int) { operator++(); } // postfix, only forward iterator is defined 00030 }; 00031 //-------------------------------------------------------------------- 00032 00033 } // end OA namespace 00034 00035 #endif
1.7.1