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

◆ bind() [1/4]

void MayaFlux::Kakshya::PlotContainer::bind ( uint32_t  series_index,
std::function< void(std::vector< double > &)>  fn 
)

Bind a series to a callable.

Each process() calls fn(series_vector) by reference. The callable fills or mutates it freely. Use for computed series, ring buffer views, or any source that does not fit the other patterns.

Parameters
series_indexIndex returned by add_series().
fnCallable invoked with the series vector each process().

Definition at line 169 of file PlotContainer.cpp.

171{
172 auto& p = ensure_processor();
173 p.bind_callable(series_index, std::move(fn));
174 p.set_series_semantics(series_index, m_structure.dimensions[series_index].role,
177}
PlotProcessor & ensure_processor()
Return the PlotProcessor, creating and attaching it if absent.
void mark_ready_for_processing(bool ready) override
Mark the container as ready or not ready for processing.
ContainerDataStructure m_structure

References MayaFlux::Kakshya::ContainerDataStructure::dimensions, ensure_processor(), m_structure, mark_ready_for_processing(), and MayaFlux::Kakshya::ContainerDataStructure::modality.

+ Here is the call graph for this function: