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

◆ grow()

RewriteOperator::GrowResult MayaFlux::Nodes::Network::RewriteOperator::grow ( uint64_t steps = 1,
std::span< const double > inputs = {} )
nodiscard

Rewrite the draft word and submit it, on the producer lane.

Parameters
stepsGenerations to build, as for rewrite()
inputsNumeric inputs, as for rewrite()

Does nothing and returns BUSY while a submission is still pending, so the draft never moves ahead of what can be published. To keep rewriting while a submission is pending, call rewrite() and submit() yourself.

Definition at line 335 of file RewriteOperator.cpp.

336{
337 if (!m_valid) {
339 }
340
342 if (m_pending) {
343 return GrowResult::BUSY;
344 }
345
346 switch (rewrite(steps, inputs)) {
348 break;
357 }
358
359 switch (submit()) {
361 return GrowResult::GROWN;
363 return GrowResult::BUSY;
367 break;
368 }
370}
SubmitResult submit()
Submit the draft word; it becomes the active word at the next RelationNetwork block.
RewriteResult rewrite(uint64_t steps=1, std::span< const double > inputs={})
Rewrite the draft word on the producer lane, without submitting it.

References BUSY, drain_retired(), GENERATION_LIMIT, grow(), GROWN, INVALID_CONFIG, m_pending, m_valid, REPLACEMENT_FAILED, rewrite(), REWRITTEN, SUBMISSION_LIMIT, submit(), SUBMITTED, and WORD_LIMIT.

Referenced by grow().

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