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

◆ read_member()

template<ControlSlot Slot>
template<typename Member, typename C>
void MayaFlux::ControlValueStore< Slot >::read_member ( const Member & member,
const C & owner,
std::string_view name,
std::optional< double > & found )
inlinestaticprivate

Definition at line 271 of file ControlValueStore.hpp.

273 {
274 const auto& value = member.get(owner);
276 if (member.name == name && value.has_value() && value.width() == 1) {
277 found = value.value();
278 }
279 } else if (name.size() > member.name.size() && name.starts_with(member.name)
280 && name[member.name.size()] == '.') {
281 if (const auto inner = read_named(value, name.substr(member.name.size() + 1))) {
282 found = inner;
283 }
284 }
285 }
static std::optional< double > read_named(const C &controls, std::string_view name)
The number held by the member called name, or nullopt for none or a vector.
Owns one described struct of Slot members for a host such as a network, an operator or an input node.

Referenced by MayaFlux::ControlValueStore< Control >::read_named().

Here is the caller graph for this function: