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

◆ append_structured_to_existing()

template<GlmType T>
void MayaFlux::Kakshya::DataInsertion::append_structured_to_existing ( std::vector< T >  new_data)
inlineprivate

Append structured data to existing storage.

Definition at line 359 of file DataInsertion.hpp.

360 {
361 if (!std::holds_alternative<std::vector<T>>(m_variant)) {
362 error<std::invalid_argument>(
365 std::source_location::current(),
366 "Cannot append: existing variant doesn't hold matching GLM type ({})",
367 typeid(T).name());
368 }
369
370 auto& existing = std::get<std::vector<T>>(m_variant);
371 existing.insert(existing.end(), new_data.begin(), new_data.end());
372
373 // Update dimension size
374 if (!m_dimensions.empty()) {
375 m_dimensions[0].size = existing.size();
376 }
377 }
Cycle Behavior: The for_cycles(N) configuration controls how many times the capture operation execute...
std::vector< DataDimension > & m_dimensions
@ Runtime
General runtime operations (default fallback)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.