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

◆ CompositeContainer() [1/2]

MayaFlux::Kakshya::CompositeContainer::CompositeContainer ( CompositeLayout  layout,
size_t  batch_size = 1 
)
explicit

Construct empty source and materialized arrays with one layout.

Parameters
layoutField layout to finalize for both arrays.
batch_sizeMaximum elements copied by materialize_next(); zero is normalized to one.
Exceptions
std::invalid_argumentIf the layout has no fields.
std::length_errorIf the layout's stride is too large.

Definition at line 30 of file CompositeContainer.cpp.

31 : m_data(std::move(layout))
34{
35}
const CompositeLayout & layout() const noexcept
Finalized layout shared by all elements.
size_t batch_size() const noexcept
Maximum elements copied by one materialize_next() call.