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

◆ add_grammar_rule()

void MayaFlux::Yantra::GrammarAwareComputeMatrix::add_grammar_rule ( ComputationGrammar::Rule  rule)
inline

Add a grammar rule directly to the matrix.

Parameters
ruleRule to add to the grammar

Convenience method to add rules directly to the matrix's grammar without needing to access the grammar instance separately. Useful for quick rule addition during matrix configuration.

Definition at line 578 of file ComputePipeline.hpp.

579 {
580 m_grammar->add_rule(std::move(rule));
581 }
std::shared_ptr< ComputationGrammar > m_grammar
Grammar instance for rule-based operation selection.