|
|
auto | attributeMap () const -> const nlohmann::json * |
| | Returns the generated attribute objectpr.
|
|
auto | groupName () const -> std::string |
| | Returns the value of the "Group" annotation, or an empty string if not present.
|
| auto | hasAttribute (std::string_view attr_name) const -> bool |
| | Checks whether a JSON annotation key is present on this field.
|
| auto | getAttribute (std::string_view attr_name) const -> std::string |
| | Returns the first string value of a JSON annotation.
|
Runtime descriptor for one reflected field.
Holds type metadata, JSON attributes parsed from the header annotation (e.g. Group, Name), and a type-erased getter/setter pair that works without knowing the concrete Node subtype.
- Note
- The getter returns std::any; the setter silently does nothing on a type mismatch