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

◆ get_rules_by_context()

std::vector< std::string > MayaFlux::Yantra::ComputationGrammar::get_rules_by_context ( ComputationContext  context) const
inline

Get all rule names for a specific computation context.

Parameters
contextThe computation context to query
Returns
Vector of rule names that belong to the specified context

Useful for discovering what rules are available for a particular computational domain (e.g., all temporal processing rules) or for building context-specific processing pipelines.

Definition at line 187 of file ComputeGrammar.hpp.

188 {
189 auto it = m_context_index.find(context);
190 return it != m_context_index.end() ? it->second : std::vector<std::string> {};
191 }
std::unordered_map< ComputationContext, std::vector< std::string > > m_context_index
Index of rule names by context for fast lookup.