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

◆ has_rule()

bool MayaFlux::Yantra::ComputationGrammar::has_rule ( const std::string &  rule_name) const
inline

Check if a rule with the given name exists.

Parameters
rule_nameName to check
Returns
True if rule exists, false otherwise

Definition at line 504 of file ComputeGrammar.hpp.

505 {
506 return std::ranges::any_of(m_rules,
507 [&rule_name](const Rule& rule) { return rule.name == rule_name; });
508 }
std::vector< Rule > m_rules
All rules sorted by priority (highest first)

References MayaFlux::Yantra::ComputationGrammar::Rule::name.