From 45af29da8095af16729955117a165d23e77cd740 Mon Sep 17 00:00:00 2001 From: reduz Date: Thu, 19 May 2022 17:00:06 +0200 Subject: Add a new HashSet template * Intended to replace RBSet in most cases. * Optimized for iteration speed --- core/object/class_db.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/object/class_db.h') diff --git a/core/object/class_db.h b/core/object/class_db.h index 67b71ab058..2448a86e33 100644 --- a/core/object/class_db.h +++ b/core/object/class_db.h @@ -38,6 +38,7 @@ // Makes callable_mp readily available in all classes connecting signals. // Needs to come after method_bind and object have been included. #include "core/object/callable_method_pointer.h" +#include "core/templates/hash_set.h" #define DEFVAL(m_defval) (m_defval) @@ -110,7 +111,7 @@ public: #ifdef DEBUG_METHODS_ENABLED List constant_order; List method_order; - RBSet methods_in_properties; + HashSet methods_in_properties; List virtual_methods; HashMap virtual_methods_map; HashMap> method_error_values; @@ -149,7 +150,7 @@ public: static void _add_class2(const StringName &p_class, const StringName &p_inherits); static HashMap> default_values; - static RBSet default_values_cached; + static HashSet default_values_cached; // Native structs, used by binder struct NativeStruct { -- cgit v1.2.3