MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ add_nested_field()

bool MayaFlux::Kakshya::CompositeLayout::add_nested_field ( std::string name,
CompositeLayout layout,
std::type_index type )
private

Definition at line 55 of file Composite.cpp.

57{
58 if (layout.fields().empty())
59 return false;
60
61 layout.finalize();
62 auto nested_layout = std::make_shared<const CompositeLayout>(std::move(layout));
63
64 if (!add_field_impl(std::move(name), type, sizeof(uint64_t)))
65 return false;
66
67 m_fields.back().nested_layout = std::move(nested_layout);
68 return true;
69}
bool add_field_impl(std::string name, std::type_index type, size_t size_bytes)
Definition Composite.cpp:33
std::vector< CompositeField > m_fields

References add_field_impl(), fields(), finalize(), and m_fields.

Referenced by add_compound_field(), and add_list_field().

Here is the call graph for this function:
Here is the caller graph for this function: