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

◆ create_expanse()

std::shared_ptr< Expanse > MayaFlux::Nexus::Tapestry::create_expanse ( std::string  name,
Expanse::ContainsFn  contains,
Expanse::CrossingFn  on_enter,
Expanse::CrossingFn  on_exit 
)

Create and register a named Expanse.

Returns
Shared pointer to the new Expanse, for passing to Fabric::add_expanse.

Definition at line 84 of file Tapestry.cpp.

89{
90 auto expanse = std::make_shared<Expanse>(
91 name,
92 std::move(contains),
93 std::move(on_enter),
94 std::move(on_exit));
95 m_expanses.emplace(std::move(name), expanse);
96 return expanse;
97}
std::unordered_map< std::string, std::shared_ptr< Expanse > > m_expanses
Definition Tapestry.hpp:130

References m_expanses.

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

+ Here is the caller graph for this function: