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

◆ find_slot_index()

std::optional< uint32_t > MayaFlux::Nodes::Network::RelationNetwork::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 65 of file RelationNetwork.cpp.

66{
67 for (uint32_t i = 0; i < static_cast<uint32_t>(m_slots.size()); ++i) {
68 if (m_slots[i].name == name) {
69 return i;
70 }
71 }
72 return std::nullopt;
73}
std::string name
Definition VKDevice.cpp:123

References m_slots, and name.