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

◆ get_emitter()

std::shared_ptr< Emitter > MayaFlux::Nexus::Fabric::get_emitter ( uint32_t  id) const

Get the Emitter registered under id.

Returns
The Emitter, or nullptr if id is not an Emitter or not registered.

Definition at line 145 of file Fabric.cpp.

146{
147 auto it = m_registrations.find(id);
148 if (it == m_registrations.end())
149 return nullptr;
150 if (auto* ptr = std::get_if<std::shared_ptr<Emitter>>(&it->second.member)) {
151 return *ptr;
152 }
153 return nullptr;
154}
const uint8_t * ptr
std::unordered_map< uint32_t, Registration > m_registrations
Definition Fabric.hpp:293

References m_registrations, and ptr.

Referenced by MayaFlux::Nexus::StateEncoder::encode_fabric().

+ Here is the caller graph for this function: