From 7d6b42c9e738c97f32023d78313ec390806a9731 Mon Sep 17 00:00:00 2001 From: Alexander Böhn Date: Sat, 3 Jun 2017 07:07:37 -0400 Subject: 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() --- include/plist/Dictionary.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/plist') 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::iterator iterator; + typedef std::map::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"); -- cgit v1.1-32-gdbae