diff options
| author | 2023-01-06 19:53:00 +0100 | |
|---|---|---|
| committer | 2023-02-03 00:26:19 +0100 | |
| commit | cbb43d790d7ba0575369cebdf6f8cb451bd210fd (patch) | |
| tree | 0cd1f1854580aa4bf44ded166404d9d5cc5f644d /src | |
| 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 'src')
| -rw-r--r-- | src/Array.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Array.cpp b/src/Array.cpp index 23f9922..5a4fd68 100644 --- a/src/Array.cpp +++ b/src/Array.cpp | |||
| @@ -88,6 +88,26 @@ Node* Array::operator[](unsigned int array_index) | |||
| 88 | return _array.at(array_index); | 88 | return _array.at(array_index); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | Array::iterator Array::Begin() | ||
| 92 | { | ||
| 93 | return _array.begin(); | ||
| 94 | } | ||
| 95 | |||
| 96 | Array::iterator Array::End() | ||
| 97 | { | ||
| 98 | return _array.end(); | ||
| 99 | } | ||
| 100 | |||
| 101 | Array::const_iterator Array::Begin() const | ||
| 102 | { | ||
| 103 | return _array.begin(); | ||
| 104 | } | ||
| 105 | |||
| 106 | Array::const_iterator Array::End() const | ||
| 107 | { | ||
| 108 | return _array.end(); | ||
| 109 | } | ||
| 110 | |||
| 91 | void Array::Append(Node* node) | 111 | void Array::Append(Node* node) |
| 92 | { | 112 | { |
| 93 | if (node) | 113 | if (node) |
