MayaFlux 0.4.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 330 of file Fabric.cpp.

331{
332 auto it = m_crossing_fns.find(std::string(name));
333 return it != m_crossing_fns.end() ? it->second : nullptr;
334}
std::unordered_map< std::string, std::shared_ptr< Expanse::CrossingFn > > m_crossing_fns
Definition Fabric.hpp:302
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().

Referenced by MayaFlux::Nexus::StateDecoder::decode(), and MayaFlux::Nexus::StateDecoder::reconstruct().

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