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

◆ add_expanse()

uint32_t MayaFlux::Nexus::Fabric::add_expanse ( std::shared_ptr< Expanse >  expanse)

Register an Expanse for per-commit crossing detection.

On each commit, after the snapshot publishes, the Expanse's predicate is evaluated against every indexed position and membership is diffed against the previous commit. Entry and exit actions fire for the difference.

Parameters
expanseExpanse to register.
Returns
The Expanse's own id, the same on every Fabric it is registered on.

Definition at line 101 of file Fabric.cpp.

102{
103 const uint32_t id = expanse->id();
104 m_expanses.try_emplace(id, std::move(expanse));
105 return id;
106}
std::unordered_map< uint32_t, std::shared_ptr< Expanse > > m_expanses
Definition Fabric.hpp:294
uint32_t id() const
Stable id for this Fabric, assigned by Tapestry at construction.
Definition Fabric.hpp:77

References id(), and m_expanses.

+ Here is the call graph for this function: