Engine → Core → field_info.h
reflect::field_info
| Type | Struct |
| Namespace | conjure::core::reflect |
| Include File Path | engine/include/conjure/core/reflect/field_info.h |
| Source File Path | engine/src/core/reflect/field_info.cpp |
| API ↗ | Reflection |
Syntax
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| public | arrayCount | u32 | 0 | |
| public | attributes | field_attributes | {} | |
| public | default | std::string | {} | |
| public | elementKind | field_kind | field_ | |
| public | enumType | const enum_info * | nullptr | |
| public | kind | field_kind | field_ | |
| public | name | std::string | {} | |
| public | offset | u32 | 0 | |
| public | size | u32 | 0 | |
| public | structType | const type_info * | nullptr | |
| public | type | type_id | {} |
Functions
Public
element_size
element_size[[nodiscard]] u32 element_size() const noexcept;Size of one value in bytes: size / arrayCount for arrays, size otherwise.
is_array
is_array[[nodiscard]] bool is_array() const noexcept;True for ARRAY fields.
value_kind
value_kind[[nodiscard]] field_kind value_kind() const noexcept;The kind of one value: elementKind for arrays, kind otherwise.