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

◆ refresh()

template<ControlSlot Slot>
void MayaFlux::ControlValueStore< Slot >::refresh ( double * scale = nullptr)
inline

Reads sources into their slots.

Parameters
scaleWhere a member named scale is written when it is due, or null.

Definition at line 122 of file ControlValueStore.hpp.

123 {
124 for (const Entry& entry : m_slots) {
125 entry.slot->refresh();
126 }
127
128 if constexpr (NumericControlSlot<Slot>) {
129 if (scale && m_scale) {
130 if (const auto due = m_scale->pending()) {
131 *scale = std::max(0.0, *due);
132 }
133 }
134 }
135 }
void refresh(double *scale=nullptr)
Reads sources into their slots.
Owns one described struct of Slot members for a host such as a network, an operator or an input node.