Add valid_group_characteristic

This commit is contained in:
Madeline Busig 2025-04-29 06:13:36 -07:00
parent 14655400e3
commit 77d7b73365

View File

@ -128,6 +128,9 @@ public:
bool group_characteristics_full() const { bool group_characteristics_full() const {
return m_group_characteristics.full(); 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 * @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 * @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 * @brief Add new weighted group