MayaFlux 0.5.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 593 of file ComputeGrammar.hpp.

594 {
595 m_rules.clear();
596 m_context_index.clear();
597 }
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)