From 81a0ad56283a8909198a2a986adab58f9a65cee5 Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Tue, 29 Apr 2025 06:16:12 -0700 Subject: [PATCH] Add valid_weighted_group --- include/fractal.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/fractal.hpp b/include/fractal.hpp index db0c1fd..7042394 100644 --- a/include/fractal.hpp +++ b/include/fractal.hpp @@ -153,6 +153,9 @@ public: bool weighted_groups_full() const { return m_weighted_groups.full(); } + bool valid_weighted_group(weighted_group_id_t wgroup) const { + return wgroup < m_weighted_groups.size(); + } /** * @brief Add new weighted group @@ -175,7 +178,9 @@ public: * * @ret @c true if the number of branch rules in the ruleset equals @c g_max_branch_rules, @c false otherwise */ - bool branch_rules_full() const; + bool branch_rules_full() const { + return m_branch_rules.full(); + } /** * @brief Add a new unweighted branch rule to the ruleset