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

◆ find_slot() [1/2]

MeshSlot * MayaFlux::Nodes::Network::MeshNetwork::find_slot ( std::string_view  name)

Find a slot by name.

Returns
Pointer to the slot, or nullptr if not found.

Definition at line 77 of file MeshNetwork.cpp.

78{
79 auto it = std::ranges::find_if(m_slots,
80 [name](const MeshSlot& s) { return s.name == name; });
81 return it != m_slots.end() ? &*it : nullptr;
82}

References m_slots, and MayaFlux::Nodes::Network::MeshSlot::name.