summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Daniel2023-01-06 19:53:00 +0100
committerGravatar Nikias Bassen2023-02-03 00:26:19 +0100
commitcbb43d790d7ba0575369cebdf6f8cb451bd210fd (patch)
tree0cd1f1854580aa4bf44ded166404d9d5cc5f644d /include
parent4b50a5acf1e26ff44904d5e533ff0fc06bde3e61 (diff)
downloadlibplist-cbb43d790d7ba0575369cebdf6f8cb451bd210fd.tar.gz
libplist-cbb43d790d7ba0575369cebdf6f8cb451bd210fd.tar.bz2
Add PList::Array iterator member functions
... returning both iterators and const_iterators: * PList::Array::Begin() * PList::Array::End()
Diffstat (limited to 'include')
-rw-r--r--include/plist/Array.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/plist/Array.h b/include/plist/Array.h
index 1b7728a..5f82e83 100644
--- a/include/plist/Array.h
+++ b/include/plist/Array.h
@@ -39,7 +39,14 @@ public :
Node* Clone() const;
+ typedef std::vector<Node*>::iterator iterator;
+ typedef std::vector<Node*>::const_iterator const_iterator;
+
Node* operator[](unsigned int index);
+ iterator Begin();
+ iterator End();
+ const_iterator Begin() const;
+ const_iterator End() const;
void Append(Node* node);
void Insert(Node* node, unsigned int pos);
void Remove(Node* node);