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

◆ clear_all_rules()

void MayaFlux::Yantra::ComputationGrammar::clear_all_rules ( )
inline

Clear all rules from the grammar.

Removes all rules and clears all indices. Useful for resetting the grammar to a clean state or for testing scenarios.

Definition at line 543 of file ComputeGrammar.hpp.

544 {
545 m_rules.clear();
546 m_context_index.clear();
547 }
std::unordered_map< ComputationContext, std::vector< std::string > > m_context_index
Index of rule names by context for fast lookup.
std::vector< Rule > m_rules
All rules sorted by priority (highest first)