From 77d7b73365dd1dcf4cc110b827ec6b0f2cb79f7a Mon Sep 17 00:00:00 2001 From: Madeline Busig Date: Tue, 29 Apr 2025 06:13:36 -0700 Subject: [PATCH] Add valid_group_characteristic --- include/fractal.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/fractal.hpp b/include/fractal.hpp index dccee7e..05da93d 100644 --- a/include/fractal.hpp +++ b/include/fractal.hpp @@ -128,6 +128,9 @@ public: bool group_characteristics_full() const { return m_group_characteristics.full(); } + bool valid_group_characteristic(group_id_t group) const { + return group < m_group_characteristics.size(); + } /** * @brief Add new group characteristic @@ -147,7 +150,9 @@ public: * * @ret @c true if the number of weighted groups in the ruleset equals @c g_max_wgroups, @c false otherwise */ - bool weighted_groups_full() const; + bool weighted_groups_full() const { + return m_weighted_groups.full(); + } /** * @brief Add new weighted group