MayaFlux 0.2.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 352 of file DataInsertion.hpp.

353 {
354 if (!std::holds_alternative<std::vector<T>>(m_variant)) {
355 error<std::invalid_argument>(
358 std::source_location::current(),
359 "Cannot append: existing variant doesn't hold matching GLM type ({})",
360 typeid(T).name());
361 }
362
363 auto& existing = std::get<std::vector<T>>(m_variant);
364 existing.insert(existing.end(), new_data.begin(), new_data.end());
365
366 if (!m_dimensions.empty()) {
367 m_dimensions[0].size = existing.size();
368 }
369 }
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.