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

◆ resolve_perception_fn()

std::shared_ptr< Sensor::PerceptionFn > MayaFlux::Nexus::Fabric::resolve_perception_fn ( std::string_view  name) const

Look up a registered perception function by name.

Returns
Shared pointer to the stored function, or nullptr if not found.

Definition at line 298 of file Fabric.cpp.

299{
300 auto it = m_perception_fns.find(std::string(name));
301 return it != m_perception_fns.end() ? it->second : nullptr;
302}
std::unordered_map< std::string, std::shared_ptr< Sensor::PerceptionFn > > m_perception_fns
Definition Fabric.hpp:229
const std::string & name() const
Assigned name, empty if the Fabric was constructed outside a Tapestry.
Definition Fabric.hpp:66

References m_perception_fns, and name().

Referenced by MayaFlux::Nexus::StateDecoder::reconstruct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: