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

◆ resolve_crossing_fn()

std::shared_ptr< Expanse::CrossingFn > MayaFlux::Nexus::Fabric::resolve_crossing_fn ( std::string_view  name) const

Look up a registered Expanse crossing function by name.

Used for both on_enter and on_exit callables; both share the same registry since CrossingFn has a uniform signature.

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

Definition at line 362 of file Fabric.cpp.

363{
364 auto it = m_crossing_fns.find(std::string(name));
365 return it != m_crossing_fns.end() ? it->second : nullptr;
366}
std::unordered_map< std::string, std::shared_ptr< Expanse::CrossingFn > > m_crossing_fns
Definition Fabric.hpp:303
const std::string & name() const
Assigned name, empty if the Fabric was constructed outside a Tapestry.
Definition Fabric.hpp:67

References m_crossing_fns, and name().

+ Here is the call graph for this function: