diff options
| author | 2023-01-06 19:53:00 +0100 | |
|---|---|---|
| committer | 2023-02-03 00:26:19 +0100 | |
| commit | cbb43d790d7ba0575369cebdf6f8cb451bd210fd (patch) | |
| tree | 0cd1f1854580aa4bf44ded166404d9d5cc5f644d /include/plist/Array.h | |
| parent | 4b50a5acf1e26ff44904d5e533ff0fc06bde3e61 (diff) | |
| download | libplist-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/plist/Array.h')
| -rw-r--r-- | include/plist/Array.h | 7 |
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 : | |||
| 39 | 39 | ||
| 40 | Node* Clone() const; | 40 | Node* Clone() const; |
| 41 | 41 | ||
| 42 | typedef std::vector<Node*>::iterator iterator; | ||
| 43 | typedef std::vector<Node*>::const_iterator const_iterator; | ||
| 44 | |||
| 42 | Node* operator[](unsigned int index); | 45 | Node* operator[](unsigned int index); |
| 46 | iterator Begin(); | ||
| 47 | iterator End(); | ||
| 48 | const_iterator Begin() const; | ||
| 49 | const_iterator End() const; | ||
| 43 | void Append(Node* node); | 50 | void Append(Node* node); |
| 44 | void Insert(Node* node, unsigned int pos); | 51 | void Insert(Node* node, unsigned int pos); |
| 45 | void Remove(Node* node); | 52 | void Remove(Node* node); |
