From ed279b3bc6f068b1dcd51f7047f068f5f18962d2 Mon Sep 17 00:00:00 2001 From: Myles Busig Date: Mon, 17 Feb 2025 20:03:49 -0800 Subject: [PATCH] Rename fractal variable to token, matching token_type_e naming --- include/fractal.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fractal.hpp b/include/fractal.hpp index 129d8a5..798db5a 100644 --- a/include/fractal.hpp +++ b/include/fractal.hpp @@ -17,7 +17,7 @@ constexpr size_t g_max_concurrent_leafs = 1024; constexpr size_t g_max_rules_basic = 16; constexpr size_t g_max_rules_marking = 4; -using variable_id_t = uint32_t; +using token_id_t = uint32_t; using group_id_t = uint32_t; using weighted_group_id_t = uint32_t; @@ -28,7 +28,7 @@ enum class token_type_e { generate, }; -struct variable_t { +struct token_t { token_type_e m_token = token_type_e::none; mtl::fixed m_value; }; @@ -37,7 +37,7 @@ struct group_characteristic_t { static constexpr size_t g_max_group_size = 32; uint32_t m_factor; // Number of groups generated in succession - etl::vector m_variable_ids; + etl::vector m_token_ids; }; struct marker_t { @@ -74,12 +74,12 @@ struct weighted_group_t { }; struct branch_rule_basic_t { - variable_id_t m_match; + token_id_t m_match; weighted_group_id_t m_weighted_group; }; struct branch_rule_marking_t { - variable_id_t m_match; + token_id_t m_match; uint32_t m_point_id; };