Skip to content

Engine → Core → json_conversion.h

reflect::field_ref

Syntax

struct field_ref

Variables

AccessNameTypeDefaultDescription
publicdatavoid *nullptr
publicfieldconst field_info *nullptr
publicisElementboolfalse
publicpathstd::string{}

Functions

Public

is_valid

[[nodiscard]] bool is_valid() const noexcept;

True when both the data and the description are set.

kind

[[nodiscard]] field_kind kind() const noexcept;

The kind of the referenced value (the element kind for an array element).

size

[[nodiscard]] u32 size() const noexcept;

Size in bytes of the referenced value.