Structure defining a field within a polymorphic struct, including its constraints and type metadata. More...
#include <struct_utils.hpp>
Public Member Functions | |
| POLYMORPHIC_STRUCT_FIELD (POLYMORPHIC_STRUCT_CONSTRAINT constraint, POLYMORPHIC_STRUCT_FIELD_TYPE type, std::shared_ptr< arion_type::KernelType > arion_type, std::string name, size_t sz) | |
| POLYMORPHIC_STRUCT_FIELD (POLYMORPHIC_STRUCT_CONSTRAINT constraint, POLYMORPHIC_STRUCT_FIELD_TYPE type, std::shared_ptr< arion_type::KernelType > arion_type, std::string name) | |
| POLYMORPHIC_STRUCT_FIELD (POLYMORPHIC_STRUCT_FIELD_TYPE type, std::shared_ptr< arion_type::KernelType > arion_type, std::string name, size_t sz) | |
| POLYMORPHIC_STRUCT_FIELD (POLYMORPHIC_STRUCT_FIELD_TYPE type, std::shared_ptr< arion_type::KernelType > arion_type, std::string name) | |
Public Attributes | |
| POLYMORPHIC_STRUCT_CONSTRAINT | constraint |
| Constraints dictating when this field is active. | |
| POLYMORPHIC_STRUCT_FIELD_TYPE | type |
| The type and size of the field. | |
| std::shared_ptr< arion_type::KernelType > | arion_type |
| The Arion type object used for displaying/interpreting the field value. | |
| std::string | name |
| The name of the field within the structure. | |
| size_t | sz |
| Size of the array (if an array type, otherwise 0). | |
Structure defining a field within a polymorphic struct, including its constraints and type metadata.
|
inline |
Builder for POLYMORPHIC_STRUCT_FIELD instances with full parameters.
|
inline |
Builder for non-array POLYMORPHIC_STRUCT_FIELD instances with constraints.
|
inline |
Builder for POLYMORPHIC_STRUCT_FIELD instances with array size but no constraints.
|
inline |
Builder for non-array POLYMORPHIC_STRUCT_FIELD instances with no constraints.
| std::shared_ptr<arion_type::KernelType> arion_poly_struct::POLYMORPHIC_STRUCT_FIELD::arion_type |
The Arion type object used for displaying/interpreting the field value.
| POLYMORPHIC_STRUCT_CONSTRAINT arion_poly_struct::POLYMORPHIC_STRUCT_FIELD::constraint |
Constraints dictating when this field is active.
| std::string arion_poly_struct::POLYMORPHIC_STRUCT_FIELD::name |
The name of the field within the structure.
| size_t arion_poly_struct::POLYMORPHIC_STRUCT_FIELD::sz |
Size of the array (if an array type, otherwise 0).
| POLYMORPHIC_STRUCT_FIELD_TYPE arion_poly_struct::POLYMORPHIC_STRUCT_FIELD::type |
The type and size of the field.