summaryrefslogtreecommitdiffstats
path: root/include/plist
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-02-06 12:10:23 -0800
committerGravatar Nikias Bassen2023-04-21 12:16:55 +0200
commit12c45a21b4f223ca2a4ccba42ade2366f4dbde5c (patch)
tree6884b1da1da49bc5ce5f2ea8ec9767d315905d0e /include/plist
parent581db7f8215387cd722b9f06a5afbd4df9617072 (diff)
downloadlibplist-12c45a21b4f223ca2a4ccba42ade2366f4dbde5c.tar.gz
libplist-12c45a21b4f223ca2a4ccba42ade2366f4dbde5c.tar.bz2
C++: Add dictionary and array size method
Thanks @Cryptiiiic for the contribution.
Diffstat (limited to 'include/plist')
-rw-r--r--include/plist/Array.h1
-rw-r--r--include/plist/Dictionary.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/plist/Array.h b/include/plist/Array.h
index 2b25e94..5a685e1 100644
--- a/include/plist/Array.h
+++ b/include/plist/Array.h
@@ -51,6 +51,7 @@ public :
const_iterator begin() const;
const_iterator End() const;
const_iterator end() const;
+ const size_t size() const;
void Append(Node* node);
void Insert(Node* node, unsigned int pos);
void Remove(Node* node);
diff --git a/include/plist/Dictionary.h b/include/plist/Dictionary.h
index f3385e3..b61921b 100644
--- a/include/plist/Dictionary.h
+++ b/include/plist/Dictionary.h
@@ -53,6 +53,7 @@ public :
const_iterator begin() const;
const_iterator End() const;
const_iterator end() const;
+ const size_t size() 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);