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

◆ declare()

template<ControlSlot Slot>
template<typename C>
C & MayaFlux::ControlValueStore< Slot >::declare ( )
inlinenodiscard

Creates the struct and returns it, for the host to hold by reference.

Definition at line 72 of file ControlValueStore.hpp.

73 {
75 C& controls = *storage;
76
78 m_tag = tag<C>();
79 m_slots.clear();
80 m_scale = nullptr;
81
83
84 return controls;
85 }
static const void * tag() noexcept
std::shared_ptr< void > m_storage
void add_members(C &owner, const std::string &prefix)
Owns one described struct of Slot members for a host such as a network, an operator or an input node.