Toast Engine
Loading...
Searching...
No Matches
toast::GroupInfo Struct Reference

Top-level category grouping fields and optional SubgroupInfo children. More...

#include <reflect_node.hpp>

Public Member Functions

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.

Public Attributes

std::string_view name
std::span< const FieldInfo *const > fields
std::span< const SubgroupInfo > subgroups

Detailed Description

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.

Member Function Documentation

◆ 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_nameThe 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_nameThe 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: