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

◆ set_node()

void MayaFlux::Nodes::Network::RelationSlot::set_node ( std::shared_ptr< Node >  new_node)
inline

Set this slot's node.

Parameters
new_nodeNode whose output becomes this slot's signal. Owned by the slot.

Enables the node's hooks (on_impulse, on_phase_wrap, on_tick, ...) so they fire while the slot is advanced. A node already belonging to another network stays silent until set_in_network(false) is called on it directly.

Definition at line 58 of file RelationSlot.hpp.

59 {
60 if (new_node) {
61 new_node->m_fire_events_during_snapshot = true;
62 }
63 node = std::move(new_node);
64 }

References node.