summaryrefslogtreecommitdiff
path: root/src/valueiterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/valueiterator.cpp')
-rw-r--r--src/valueiterator.cpp100
1 files changed, 0 insertions, 100 deletions
diff --git a/src/valueiterator.cpp b/src/valueiterator.cpp
deleted file mode 100644
index 65c687c..0000000
--- a/src/valueiterator.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-/**
- * ValueIterator.cpp
- *
- * Implementation of the value iterator
- *
- * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
- * @copyright 2014 Copernica BV
- */
-#include "includes.h"
-
-/**
- * Set up namespace
- */
-namespace Php {
-
-/**
- * Copy constructor
- * @param that
- * @param tsrm_ls
- */
-ValueIterator::ValueIterator(const ValueIterator &that) : _impl(that._impl->clone()) {}
-
-/**
- * Destructor
- */
-ValueIterator::~ValueIterator()
-{
- // get rid of implementation
- delete _impl;
-}
-
-/**
- * Increment position
- * @return ValueIterator
- */
-ValueIterator &ValueIterator::operator++()
-{
- // increment implementation
- _impl->increment();
-
- // done
- return *this;
-}
-
-/**
- * Decrement position
- * @return ValueIterator
- */
-ValueIterator &ValueIterator::operator--()
-{
- // decrement implementation
- _impl->decrement();
-
- // done
- return *this;
-}
-
-/**
- * Compare with other iterator
- * @param that
- * @return bool
- */
-bool ValueIterator::operator==(const ValueIterator &that) const
-{
- return _impl->equals(that._impl);
-}
-
-/**
- * Compare with other iterator
- * @param that
- * @return bool
- */
-bool ValueIterator::operator!=(const ValueIterator &that) const
-{
- return !_impl->equals(that._impl);
-}
-
-/**
- * Derefecence, this returns a std::pair with the current key and value
- * @return std::pair
- */
-const std::pair<Value,Value> &ValueIterator::operator*() const
-{
- return _impl->current();
-}
-
-/**
- * Dereference, this returns a std::pair with the current key and value
- * @return std::pair
- */
-const std::pair<Value,Value> *ValueIterator::operator->() const
-{
- return &_impl->current();
-}
-
-/**
- * End namespace
- */
-}
-