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

◆ find_slot_index()

std::optional< uint32_t > MayaFlux::Nodes::Network::MeshNetwork::find_slot_index ( std::string_view  name) const

Find the index of a slot by name.

Returns
Index, or nullopt if not found.

Definition at line 91 of file MeshNetwork.cpp.

92{
93 for (uint32_t i = 0; i < static_cast<uint32_t>(m_slots.size()); ++i) {
94 if (m_slots[i].name == name)
95 return i;
96 }
97 return std::nullopt;
98}

References m_slots.