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

◆ create_expanse() [4/4]

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.

The name also serves as the containment function's registry name for state encoding, unless set_fn_name is called. A name already in use warns and returns the existing Expanse, as create_fabric does.

Returns
Shared pointer to the 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 return claim(std::move(name), std::move(expanse));
96}
Expanse::ContainsFn contains
Definition Decoder.cpp:517
Expanse::CrossingFn on_enter
Definition Decoder.cpp:518
Expanse::CrossingFn on_exit
Definition Decoder.cpp:519
std::string name
Definition VKDevice.cpp:123
std::shared_ptr< Expanse > claim(std::string name, std::shared_ptr< Expanse > expanse)
Definition Tapestry.cpp:112

References claim(), contains, name, on_enter, and on_exit.

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

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