diff options
Diffstat (limited to 'include/iterator.h')
-rw-r--r-- | include/iterator.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/iterator.h b/include/iterator.h index 331c8b3..5d49e1f 100644 --- a/include/iterator.h +++ b/include/iterator.h @@ -3,9 +3,9 @@ * * Base class for iterators. Extension writers that want to create traversable * classes, should override the Php::Traversable base class. This base class - * forces you to implement a getIterator() method that returns an instance of + * forces you to implement a getIterator() method that returns an instance of * a Php::Iterator class. - * + * * In this file you find the signature of the Php::Iterator class. It mostly has * pure virtual methods, which means that you should create a derived class * that implements all these methods. @@ -22,7 +22,7 @@ namespace Php { /** * Class definition */ -class Iterator +class PHPCPP_EXPORT Iterator { public: /** @@ -30,40 +30,40 @@ public: * @param base Class over which the iterator is iterating */ Iterator(Base *base) : _object(base) {} - + /** * Destructor */ virtual ~Iterator() {} - + /** * Is the iterator on a valid position * @return bool */ virtual bool valid() = 0; - + /** * The value at the current position * @return Value */ virtual Value current() = 0; - + /** * The key at the current position * @return Value */ virtual Value key() = 0; - + /** * Move to the next position */ virtual void next() = 0; - + /** * Rewind the iterator to the front position */ virtual void rewind() = 0; - + protected: /** * During the lifetime of the iterator, the object over which @@ -72,9 +72,9 @@ protected: * @var Value */ Value _object; - + }; - + /** * End namespace */ |