MayaFlux 0.3.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 340 of file DataInsertion.hpp.

341 {
342 if (!std::holds_alternative<std::vector<T>>(m_variant)) {
343 error<std::invalid_argument>(
346 std::source_location::current(),
347 "Cannot append: existing variant doesn't hold matching GLM type ({})",
348 typeid(T).name());
349 }
350
351 auto& existing = std::get<std::vector<T>>(m_variant);
352 existing.insert(existing.end(), new_data.begin(), new_data.end());
353
354 if (!m_dimensions.empty()) {
355 m_dimensions[0].size = existing.size();
356 }
357 }
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.