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

◆ assign()

void MayaFlux::Nodes::Network::Control::assign ( const Control & incoming)
inline

Takes everything incoming holds, so the next due() is true.

Between two values this is safe from any thread. When either side holds a source it replaces the source pointers, which belongs outside the block.

Definition at line 122 of file Control.hpp.

123 {
124 if (sourced() || incoming.sourced()) {
125 m_node = incoming.m_node;
126 m_network = incoming.m_network;
127 }
128 ControlValue::assign(incoming);
129 }
void assign(const ControlValue &incoming) noexcept
Takes everything incoming holds, so the next due() is true.
std::shared_ptr< Node > m_node
Definition Control.hpp:142
bool sourced() const noexcept
True when a node or a network feeds this control.
Definition Control.hpp:68
std::shared_ptr< NodeNetwork > m_network
Definition Control.hpp:143

References MayaFlux::ControlValue::assign(), Control(), m_network, m_node, and sourced().

Here is the call graph for this function: