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

◆ map()

void MayaFlux::Nodes::Network::RelationOperator::map ( std::string  parameter,
Source  source 
)
inline

Drive an operator parameter from a source.

Parameters
parameterName passed to set_parameter
sourceEvaluated once per block, at begin_block()

A parameter has at most one mapping. Mapping it again replaces the source. Must not run concurrently with begin_block().

Definition at line 149 of file RelationOperators.hpp.

150 {
151 auto it = std::ranges::find(m_bindings, parameter, &Binding::parameter);
152 if (it != m_bindings.end()) {
153 it->source = std::move(source);
154 } else {
155 m_bindings.push_back({ .parameter = std::move(parameter), .source = std::move(source) });
156 }
157 }