|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Read view of one value in a CompositeArray. More...
#include <Composite.hpp>
Collaboration diagram for MayaFlux::Kakshya::Composite:Public Member Functions | |
| std::optional< std::span< const uint8_t > > | blob (std::string_view field_name) const noexcept |
| Borrow the bytes of a fixed or dynamic BLOB field. | |
| template<typename T > requires ArithmeticData<T> | |
| std::optional< T > | get (std::string_view field_name) const noexcept |
| Read a present arithmetic field by exact value type. | |
| bool | has (std::string_view field_name) const noexcept |
| Whether a named field exists and is present in this element. | |
| const CompositeLayout & | layout () const noexcept |
| Layout used to interpret this element's packed bytes. | |
| std::optional< std::string_view > | text (std::string_view field_name) const noexcept |
| Read a present std::string field as borrowed UTF-8 bytes. | |
| std::optional< CompositeValue > | value (std::string_view field_name) const noexcept |
| Borrow a dynamic value; an absent field returns std::nullopt. | |
Private Member Functions | |
| Composite (const CompositeLayout &layout, const DataVariant &rows, const DataVariant &text, const DataVariant &blob, size_t index) noexcept | |
Private Attributes | |
| const DataVariant * | m_blob |
| size_t | m_index |
| const CompositeLayout * | m_layout |
| const DataVariant * | m_rows |
| const DataVariant * | m_text |
Friends | |
| class | CompositeAccess |
| class | CompositeArray |
| class | CompositeInsertion |
Read view of one value in a CompositeArray.
Borrows a layout and three DataVariant stores. Arithmetic access copies one value from packed bytes, so the field need not be naturally aligned. Numeric getters require an exact declared type, except dynamic INTEGER and REAL fields which accept int64_t and double respectively. Missing and mismatched fields return std::nullopt.
Usage:
Definition at line 130 of file Composite.hpp.