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

◆ id_for()

uint32_t MayaFlux::Core::SerialInputBackend::id_for ( Roster & roster,
const std::string & key )
staticprivate

Definition at line 35 of file SerialInputBackend.cpp.

36{
37 const auto [it, inserted] = roster.ids.try_emplace(key, roster.next_id);
38 if (inserted) {
39 ++roster.next_id;
40 }
41 return it->second;
42}

References MayaFlux::Core::SerialInputBackend::Roster::ids, and MayaFlux::Core::SerialInputBackend::Roster::next_id.

Referenced by add_port(), add_view(), initialize(), and refresh_devices().

Here is the caller graph for this function: