summaryrefslogtreecommitdiff
path: root/include/valueiterator.h
diff options
context:
space:
mode:
authorMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
committerMartijn Otto <martijn.otto@copernica.com>2015-03-26 16:00:10 +0100
commit7a928e2b19bddf152fd838469cc50805d4132401 (patch)
tree0a6657f4b94c27556b2f218e407f752018540d3b /include/valueiterator.h
parentae4fa5f871d937773e9facde87a32784e715e3ae (diff)
Changed default visibility for symbols in the PHP-CPP library to hidden and explicitly exported all symbols available from the public API. Moved the hiddenpointer to the zend implementation directory as it is not meant to be used publicly and not referenced anywhere from the API anyway
Diffstat (limited to 'include/valueiterator.h')
-rw-r--r--include/valueiterator.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/valueiterator.h b/include/valueiterator.h
index 95cdac6..92c26aa 100644
--- a/include/valueiterator.h
+++ b/include/valueiterator.h
@@ -24,7 +24,7 @@ class ValueIteratorImpl;
/**
* Class definition
*/
-class ValueIterator
+class PHPCPP_EXPORT ValueIterator
{
public:
/**
@@ -32,13 +32,13 @@ public:
* @param impl Implementation iterator
*/
ValueIterator(ValueIteratorImpl *impl) : _impl(impl) {}
-
+
/**
* Copy constructor
* @param that
*/
ValueIterator(const ValueIterator &that);
-
+
/**
* Destructor
*/
@@ -49,7 +49,7 @@ public:
* @return ValueIterator
*/
ValueIterator &operator++();
-
+
/**
* Increment position (post-increment)
* @return ValueIterator
@@ -58,14 +58,14 @@ public:
{
// make a copy
ValueIterator copy(*this);
-
+
// increment current object
++(*this);
-
+
// and return the unchanged original
return copy;
}
-
+
/**
* Decrement position (pre-decrement)
* @return ValueIterator
@@ -80,14 +80,14 @@ public:
{
// make a copy
ValueIterator copy(*this);
-
+
// decrement current object
--(*this);
-
+
// and return the unchanged original
return copy;
}
-
+
/**
* Compare with other iterator
* @param that
@@ -107,7 +107,7 @@ public:
* @return std::pair
*/
const std::pair<Value,Value> &operator*() const;
-
+
/**
* Dereference, this returns a std::pair with the current key and value
* @return std::pair
@@ -127,4 +127,3 @@ private:
* End namespace
*/
}
-