Top-level category grouping fields and optional SubgroupInfo children.
More...
#include <reflect_node.hpp>
|
| auto | getSubgroup (std::string_view group_name) const -> const SubgroupInfo * |
| | Finds a subgroup by name.
|
| auto | getField (std::string_view field_name) const -> const FieldInfo * |
| | Finds a field by name within this group's flat field list.
|
|
|
std::string_view | name |
|
std::span< const FieldInfo *const > | fields |
|
std::span< const SubgroupInfo > | subgroups |
Top-level category grouping fields and optional SubgroupInfo children.
Corresponds to a collapsible section in the inspector. Fields with no Group annotation have an empty group name and are placed in a default section by the inspector.
◆ getField()
| auto toast::GroupInfo::getField |
( |
std::string_view | field_name | ) |
const -> const FieldInfo * |
|
inlinenodiscard |
Finds a field by name within this group's flat field list.
- Parameters
-
| field_name | The reflected field name to look up |
- Returns
- Pointer to the matching FieldInfo, or nullptr if not found
- Note
- Does not search inside subgroups; use NodeInfo::getField() for a full search
◆ getSubgroup()
| auto toast::GroupInfo::getSubgroup |
( |
std::string_view | group_name | ) |
const -> const SubgroupInfo * |
|
inlinenodiscard |
Finds a subgroup by name.
- Parameters
-
| group_name | The subgroup name to look up |
- Returns
- Pointer to the matching SubgroupInfo, or nullptr if not found
The documentation for this struct was generated from the following file: