Add a new HashSet template
* Intended to replace RBSet in most cases. * Optimized for iteration speed
This commit is contained in:
parent
410893ad0f
commit
45af29da80
243 changed files with 1400 additions and 662 deletions
|
|
@ -3067,7 +3067,7 @@ void EditorExportPlatformAndroid::get_platform_features(List<String> *r_features
|
|||
r_features->push_back("android");
|
||||
}
|
||||
|
||||
void EditorExportPlatformAndroid::resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) {
|
||||
void EditorExportPlatformAndroid::resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) {
|
||||
}
|
||||
|
||||
EditorExportPlatformAndroid::EditorExportPlatformAndroid() {
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ public:
|
|||
|
||||
virtual void get_platform_features(List<String> *r_features) override;
|
||||
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) override;
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) override;
|
||||
|
||||
EditorExportPlatformAndroid();
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options)
|
|||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, vformat("%s/%s", PNAME("plugins"), found_plugins[i].name)), false));
|
||||
}
|
||||
|
||||
RBSet<String> plist_keys;
|
||||
HashSet<String> plist_keys;
|
||||
|
||||
for (int i = 0; i < found_plugins.size(); i++) {
|
||||
// Editable plugin plist values
|
||||
|
|
@ -1178,7 +1178,7 @@ Error EditorExportPlatformIOS::_export_ios_plugins(const Ref<EditorExportPreset>
|
|||
Vector<String> added_embedded_dependenciy_names;
|
||||
HashMap<String, String> plist_values;
|
||||
|
||||
RBSet<String> plugin_linker_flags;
|
||||
HashSet<String> plugin_linker_flags;
|
||||
|
||||
Error err;
|
||||
|
||||
|
|
@ -1453,7 +1453,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
|
|||
bool found_library = false;
|
||||
|
||||
const String project_file = "godot_ios.xcodeproj/project.pbxproj";
|
||||
RBSet<String> files_to_parse;
|
||||
HashSet<String> files_to_parse;
|
||||
files_to_parse.insert("godot_ios/godot_ios-Info.plist");
|
||||
files_to_parse.insert(project_file);
|
||||
files_to_parse.insert("godot_ios/export_options.plist");
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ public:
|
|||
r_features->push_back("ios");
|
||||
}
|
||||
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) override {
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) override {
|
||||
}
|
||||
|
||||
EditorExportPlatformIOS();
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ public:
|
|||
r_features->push_back(get_os_name().to_lower());
|
||||
}
|
||||
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) override {
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) override {
|
||||
}
|
||||
|
||||
String get_debug_protocol() const override { return "ws://"; }
|
||||
|
|
|
|||
|
|
@ -1255,7 +1255,7 @@ void DisplayServerX11::delete_sub_window(WindowID p_id) {
|
|||
DEBUG_LOG_X11("delete_sub_window: %lu (%u) \n", wd.x11_window, p_id);
|
||||
|
||||
while (wd.transient_children.size()) {
|
||||
window_set_transient(wd.transient_children.front()->get(), INVALID_WINDOW_ID);
|
||||
window_set_transient(*wd.transient_children.begin(), INVALID_WINDOW_ID);
|
||||
}
|
||||
|
||||
if (wd.transient_parent != INVALID_WINDOW_ID) {
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ class DisplayServerX11 : public DisplayServer {
|
|||
Callable drop_files_callback;
|
||||
|
||||
WindowID transient_parent = INVALID_WINDOW_ID;
|
||||
RBSet<WindowID> transient_children;
|
||||
HashSet<WindowID> transient_children;
|
||||
|
||||
ObjectID instance_id;
|
||||
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ public:
|
|||
|
||||
WindowID transient_parent = INVALID_WINDOW_ID;
|
||||
bool exclusive = false;
|
||||
RBSet<WindowID> transient_children;
|
||||
HashSet<WindowID> transient_children;
|
||||
|
||||
bool layered_window = false;
|
||||
bool fullscreen = false;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ public:
|
|||
r_features->push_back("macos");
|
||||
}
|
||||
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) override {
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) override {
|
||||
}
|
||||
|
||||
EditorExportPlatformOSX();
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
DisplayServerOSX::WindowData &wd = ds->get_window(window_id);
|
||||
while (wd.transient_children.size()) {
|
||||
ds->window_set_transient(wd.transient_children.front()->get(), DisplayServerOSX::INVALID_WINDOW_ID);
|
||||
ds->window_set_transient(*wd.transient_children.begin(), DisplayServerOSX::INVALID_WINDOW_ID);
|
||||
}
|
||||
|
||||
if (wd.transient_parent != DisplayServerOSX::INVALID_WINDOW_ID) {
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class AppxPackager {
|
|||
String progress_task;
|
||||
Ref<FileAccess> package;
|
||||
|
||||
RBSet<String> mime_types;
|
||||
HashSet<String> mime_types;
|
||||
|
||||
Vector<FileMeta> file_metadata;
|
||||
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ void EditorExportPlatformUWP::get_platform_features(List<String> *r_features) {
|
|||
r_features->push_back("uwp");
|
||||
}
|
||||
|
||||
void EditorExportPlatformUWP::resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) {
|
||||
void EditorExportPlatformUWP::resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) {
|
||||
}
|
||||
|
||||
EditorExportPlatformUWP::EditorExportPlatformUWP() {
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ public:
|
|||
|
||||
virtual void get_platform_features(List<String> *r_features) override;
|
||||
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, RBSet<String> &p_features) override;
|
||||
virtual void resolve_platform_feature_priorities(const Ref<EditorExportPreset> &p_preset, HashSet<String> &p_features) override;
|
||||
|
||||
EditorExportPlatformUWP();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -628,7 +628,7 @@ void DisplayServerWindows::delete_sub_window(WindowID p_window) {
|
|||
WindowData &wd = windows[p_window];
|
||||
|
||||
while (wd.transient_children.size()) {
|
||||
window_set_transient(wd.transient_children.front()->get(), INVALID_WINDOW_ID);
|
||||
window_set_transient(*wd.transient_children.begin(), INVALID_WINDOW_ID);
|
||||
}
|
||||
|
||||
if (wd.transient_parent != INVALID_WINDOW_ID) {
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@ class DisplayServerWindows : public DisplayServer {
|
|||
Callable drop_files_callback;
|
||||
|
||||
WindowID transient_parent = INVALID_WINDOW_ID;
|
||||
RBSet<WindowID> transient_children;
|
||||
HashSet<WindowID> transient_children;
|
||||
|
||||
bool is_popup = false;
|
||||
Rect2i parent_safe_rect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue