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

◆ jump()

void MayaFlux::Nodes::Network::WalkOperator::jump ( size_t  index)

Make a slot the active one.

Parameters
indexSlot index. Ignored if out of range for the network's current slot count or for the table's own row count, whichever is smaller.

Definition at line 70 of file WalkOperator.cpp.

71{
73
74 auto all = slots();
75 if (index >= all.size() || index >= m_table->rows()) {
76 return;
77 }
78
79 const size_t here = m_current.load(std::memory_order_relaxed);
80 if (index == here) {
81 return;
82 }
83
84 all[here].set_active(false);
85 all[index].set_active(true);
86 m_current.store(index, std::memory_order_relaxed);
87}
uint32_t index
Definition VKDevice.cpp:122
std::span< RelationSlot > slots() const noexcept
void ensure_established()
Activate slot m_current and deactivate every other slot that currently exists.
std::shared_ptr< Kinesis::Stochastic::Weights > m_table

References ensure_established(), index, m_current, m_table, and MayaFlux::Nodes::Network::RelationOperator::slots().

Referenced by advance(), and set_parameter().

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