From e1496a87178d925277aceed0ebcbab06920e15ee Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Mon, 25 Dec 2023 02:42:11 -0500 Subject: Add `https://github.com/Tessil/ordered-map` Add is_specialization_of to Utility.hpp Add OpenVic::ordered_map and OpenVic::ordered_set Change `std::map` to `ordered_map` Change `std::set to use `ordered_set` Add `set_callback_pointer(tsl::ordered_set& set)` Add mutable_iterator to enable mutable value iterator for `tsl::ordered_map` Add std::hash implementation Enable deps/SCsub to expose dependency includes neccessary for inclusion --- deps/SCsub | 11 ++++++++++- deps/ordered-map | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) create mode 160000 deps/ordered-map (limited to 'deps') diff --git a/deps/SCsub b/deps/SCsub index 49755fc..b26e595 100644 --- a/deps/SCsub +++ b/deps/SCsub @@ -8,6 +8,7 @@ def build_openvic_dataloader(env): env.Prepend(LIBS=ovdl_env.openvic_dataloader["LIBS"]) env.Append(CPPPATH=ovdl_env.openvic_dataloader["INCPATH"]) env.openvic_dataloader = ovdl_env.openvic_dataloader + env.exposed_includes += env.openvic_dataloader["INCPATH"] def build_lexy_vdf(env): lvdf_env = SConscript("lexy-vdf/SConstruct") @@ -16,5 +17,13 @@ def build_lexy_vdf(env): env.Append(CPPPATH=lvdf_env.lexy_vdf["INCPATH"]) env.lexy_vdf = lvdf_env.lexy_vdf +def build_ordered_map(env): + include_path = "ordered-map/include" + env.ordered_map = {} + env.ordered_map["INCPATH"] = [env.Dir(include_path)] + env.Append(CPPPATH=env.ordered_map["INCPATH"]) + env.exposed_includes += env.ordered_map["INCPATH"] + build_openvic_dataloader(env) -build_lexy_vdf(env) \ No newline at end of file +build_lexy_vdf(env) +build_ordered_map(env) \ No newline at end of file diff --git a/deps/ordered-map b/deps/ordered-map new file mode 160000 index 0000000..bd8d5ef --- /dev/null +++ b/deps/ordered-map @@ -0,0 +1 @@ +Subproject commit bd8d5ef4149cd40783a486011778a2e7eedde441 -- cgit v1.2.3-56-ga3b1