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

◆ stateful_v

template<typename Op>
bool MayaFlux::Yantra::stateful_v = requires { requires Op::stateful; }
inlineconstexpr

Whether the class keeps state between calls and must stay on its candidate.

A class says so with static constexpr bool stateful = true. The grammar then keeps running it, instead of switching to a better-scoring candidate, until it stops accepting its input or the grammar's choices are reset.

Definition at line 39 of file GrammarHelper.hpp.

39{ requires Op::stateful; };

Referenced by MayaFlux::Yantra::OperationRegistry::catalog_impl(), and MayaFlux::Yantra::ComputationGrammar::RuleBuilder::uses().