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

◆ snapshot()

template<ControlSlot Slot>
template<typename C>
C MayaFlux::ControlValueStore< Slot >::snapshot ( const double * scale = nullptr) const
inlinenodiscard

A copy of the struct.

Parameters
scaleThe value a top level member named scale really holds, or null.

Definition at line 103 of file ControlValueStore.hpp.

104 {
105 C current = m_tag == tag<C>()
106 ? *static_cast<const C*>(m_storage.get())
107 : C {};
108 if (scale) {
110 [&](const auto&... member) {
112 },
114 }
115 return current;
116 }
static const void * tag() noexcept
static void observe_scale(const Member &member, C &current, double scale)
std::shared_ptr< void > m_storage
Owns one described struct of Slot members for a host such as a network, an operator or an input node.

Referenced by MayaFlux::Nodes::Network::NetworkOperator::get(), and MayaFlux::Nodes::Network::NodeNetwork::get().

Here is the caller graph for this function: