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

◆ selection()

template<typename E>
requires std::is_enum_v<E>
std::optional< E > MayaFlux::Yantra::ComputationSignature::selection ( size_t index) const
inlinenodiscard

Read a selection when its enum type matches E.

Definition at line 55 of file ComputationSignature.hpp.

56 {
57 if (index >= size() || m_selections[index].type != enum_identity<E>()) {
58 return std::nullopt;
59 }
60 return static_cast<E>(m_selections[index].value);
61 }

References enum_identity(), m_selections, and size().

Referenced by ComputationSignature().

Here is the call graph for this function:
Here is the caller graph for this function: