diff options
Diffstat (limited to 'include/plist/Dictionary.h')
-rw-r--r-- | include/plist/Dictionary.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/plist/Dictionary.h b/include/plist/Dictionary.h index 8468ab5..6169774 100644 --- a/include/plist/Dictionary.h +++ b/include/plist/Dictionary.h @@ -35,17 +35,19 @@ class Dictionary : public Structure Dictionary(); Dictionary(plist_t node); Dictionary(Dictionary& d); - Dictionary& operator=(const Dictionary& d); + Dictionary& operator=(Dictionary& d); virtual ~Dictionary(); - + + Node* Clone(); + typedef std::map<std::string,Node*>::iterator iterator; - Node* operator[](std::string& key); + Node* operator[](const std::string& key); iterator Begin(); iterator End(); - void Insert(std::string& key, Node* node); + void Insert(const std::string& key, Node* node); void Remove(Node* node); - void Remove(std::string& key); + void Remove(const std::string& key); private : std::map<std::string,Node*> _map; |