diff options
author | Alexander Böhn | 2017-06-03 07:07:37 -0400 |
---|---|---|
committer | Nikias Bassen | 2019-07-07 13:55:17 +0700 |
commit | 7d6b42c9e738c97f32023d78313ec390806a9731 (patch) | |
tree | 6c41c2b7c443e096ebb6d3a1b1eb5856a2eea0c0 /include/plist/Dictionary.h | |
parent | ec957fb8253ffbced690fb5bcb1743f015ab0815 (diff) | |
download | libplist-7d6b42c9e738c97f32023d78313ec390806a9731.tar.gz libplist-7d6b42c9e738c97f32023d78313ec390806a9731.tar.bz2 |
Add PList::Dictionary::const_iterator
... and const versions of three member functions, each returning const_iterator:
* Plist::Dictionary::Begin()
* PList::Dictionary::End()
* PList::Dictionary::Find()
Diffstat (limited to 'include/plist/Dictionary.h')
-rw-r--r-- | include/plist/Dictionary.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/plist/Dictionary.h b/include/plist/Dictionary.h index 7a29f14..71d40ac 100644 --- a/include/plist/Dictionary.h +++ b/include/plist/Dictionary.h @@ -41,11 +41,15 @@ public : Node* Clone() const; typedef std::map<std::string,Node*>::iterator iterator; + typedef std::map<std::string,Node*>::const_iterator const_iterator; Node* operator[](const std::string& key); iterator Begin(); iterator End(); iterator Find(const std::string& key); + const_iterator Begin() const; + const_iterator End() const; + const_iterator Find(const std::string& key) const; iterator Set(const std::string& key, const Node* node); iterator Set(const std::string& key, const Node& node); iterator Insert(const std::string& key, Node* node) PLIST_WARN_DEPRECATED("use Set() instead"); |