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

◆ at()

std::optional< double > MayaFlux::Nodes::Network::Control::at ( size_t index) const
inlinenodiscard

Value for one element: the network's output there, else the scalar.

Definition at line 673 of file NodeNetwork.hpp.

674{
675 if (m_network) {
676 return m_network->get_node_output(index);
677 }
678 return has_value() ? std::optional<double> { value() } : std::nullopt;
679}
bool has_value() const noexcept
True once a value was given.
double value() const noexcept
The value as a double.
std::shared_ptr< NodeNetwork > m_network
Definition Control.hpp:143

References MayaFlux::ControlValue::has_value(), m_network, and MayaFlux::ControlValue::value().

Referenced by MayaFlux::Nodes::Network::ModalNetwork::apply_controls(), MayaFlux::Nodes::Network::PhysicsOperator::apply_controls(), MayaFlux::Nodes::Network::ResonatorNetwork::apply_controls(), and MayaFlux::Nodes::Network::GraphicsOperator::apply_point_control().

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