LocIterator.hpp

Go to the documentation of this file.
00001 
00015 #ifndef LocIterator_H
00016 #define LocIterator_H
00017 
00018 #include <OpenAnalysis/Location/Location.hpp>
00019 
00020 namespace OA {
00021 
00023 class LocIterator {
00024 public:
00025   LocIterator() { }
00026   virtual ~LocIterator() { }
00027 
00028   virtual OA_ptr<Location> current() = 0;  // Returns the current item.
00029   virtual bool isValid() = 0;        // False when all items are exhausted.
00030         
00031   virtual void operator++() = 0;
00032   void operator++(int) { ++*this; } ;
00033 
00034   virtual void reset() = 0;
00035 };
00036 
00037 } // end namespace
00038 #endif