diff options
| author | 2009-11-04 20:21:54 +0100 | |
|---|---|---|
| committer | 2009-11-04 20:21:54 +0100 | |
| commit | 84596548e5d0cb14dfd7d2a74156331ab36a8909 (patch) | |
| tree | a98e7aeeb8864a946aaf52dc022af4bb8d381dda /include/plist | |
| parent | c8c9cfa77f0c0fdb895dfdbfc177db3c26dcedcc (diff) | |
| download | libplist-84596548e5d0cb14dfd7d2a74156331ab36a8909.tar.gz libplist-84596548e5d0cb14dfd7d2a74156331ab36a8909.tar.bz2 | |
Add GetNodeIdex and GetNodeKey methods.
Diffstat (limited to 'include/plist')
| -rw-r--r-- | include/plist/Array.h | 1 | ||||
| -rw-r--r-- | include/plist/Dictionary.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/plist/Array.h b/include/plist/Array.h index b81e6b1..fd4dea8 100644 --- a/include/plist/Array.h +++ b/include/plist/Array.h | |||
| @@ -44,6 +44,7 @@ public : | |||
| 44 | void Insert(Node* node, unsigned int pos); | 44 | void Insert(Node* node, unsigned int pos); |
| 45 | void Remove(Node* node); | 45 | void Remove(Node* node); |
| 46 | void Remove(unsigned int pos); | 46 | void Remove(unsigned int pos); |
| 47 | unsigned int GetNodeIndex(Node* node); | ||
| 47 | 48 | ||
| 48 | private : | 49 | private : |
| 49 | std::vector<Node*> _array; | 50 | std::vector<Node*> _array; |
diff --git a/include/plist/Dictionary.h b/include/plist/Dictionary.h index e43d29e..a937bde 100644 --- a/include/plist/Dictionary.h +++ b/include/plist/Dictionary.h | |||
| @@ -49,6 +49,7 @@ public : | |||
| 49 | iterator Insert(const std::string& key, Node* node); | 49 | iterator Insert(const std::string& key, Node* node); |
| 50 | void Remove(Node* node); | 50 | void Remove(Node* node); |
| 51 | void Remove(const std::string& key); | 51 | void Remove(const std::string& key); |
| 52 | std::string GetNodeKey(Node* key); | ||
| 52 | 53 | ||
| 53 | private : | 54 | private : |
| 54 | std::map<std::string,Node*> _map; | 55 | std::map<std::string,Node*> _map; |
