MayaFlux 0.4.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 508 of file ComputeGrammar.hpp.

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

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