summaryrefslogtreecommitdiff
path: root/core/variant/dictionary.h
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2021-11-02 00:00:38 +0100
committerGitHub <noreply@github.com>2021-11-02 00:00:38 +0100
commit795cd2eb38626970e7487fcc0686b33c19fd6ab5 (patch)
tree84166ca907363cd1d8b8ec503cfe98e431909df4 /core/variant/dictionary.h
parent7b83039885d2d3051726f93760d3f8f2a617b8f2 (diff)
parentce47ce8efba7d17c96ff7cc308c1cdbaa3965143 (diff)
Merge pull request #35816 from touilleMan/dictionary-operator==-true-comparison
Modify Array/Dictionary::operator== to do real key/value comparison
Diffstat (limited to 'core/variant/dictionary.h')
-rw-r--r--core/variant/dictionary.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/variant/dictionary.h b/core/variant/dictionary.h
index 4067ff9fd9..f8a2a7573f 100644
--- a/core/variant/dictionary.h
+++ b/core/variant/dictionary.h
@@ -70,8 +70,10 @@ public:
bool operator==(const Dictionary &p_dictionary) const;
bool operator!=(const Dictionary &p_dictionary) const;
+ bool recursive_equal(const Dictionary &p_dictionary, int recursion_count) const;
uint32_t hash() const;
+ uint32_t recursive_hash(int recursion_count) const;
void operator=(const Dictionary &p_dictionary);
const Variant *next(const Variant *p_key = nullptr) const;
@@ -80,6 +82,7 @@ public:
Array values() const;
Dictionary duplicate(bool p_deep = false) const;
+ Dictionary recursive_duplicate(bool p_deep, int recursion_count) const;
const void *id() const;