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

A named sub-section of fields inside a GroupInfo. More...

#include <reflect_node.hpp>

Public Member Functions

auto getField (std::string_view field_name) const -> const FieldInfo *
 Linear scan for a field by name within this subgroup.

Public Attributes

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

Detailed Description

A named sub-section of fields inside a GroupInfo.

Corresponds to a nested category in the inspector. Fields inside a subgroup are displayed collapsed under the subgroup label.

Member Function Documentation

◆ getField()

auto toast::SubgroupInfo::getField ( std::string_view field_name) const -> const FieldInfo *
inlinenodiscard

Linear scan for a field by name within this subgroup.

Parameters
field_nameThe reflected field name to look up
Returns
Pointer to the matching FieldInfo, or nullptr if not found

The documentation for this struct was generated from the following file: