|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
Type-agnostic pattern matching for computation rules. More...
#include <GrammarHelper.hpp>
Collaboration diagram for MayaFlux::Yantra::UniversalMatcher:Public Types | |
| using | MatcherFunc = std::function< bool(const std::any &, const ExecutionContext &)> |
Static Public Member Functions | |
| template<ComputeData DataType> | |
| static MatcherFunc | create_type_matcher () |
| Creates a matcher that checks for specific data types. | |
| static MatcherFunc | create_context_matcher (ComputationContext required_context) |
| Creates a matcher that checks for specific computation contexts. | |
| static MatcherFunc | create_parameter_matcher (const std::string ¶m_name, const std::any &expected_value) |
| Creates a matcher that checks for specific parameter values. | |
| static MatcherFunc | combine_and (std::vector< MatcherFunc > matchers) |
| Combines multiple matchers with AND logic. | |
| static MatcherFunc | combine_or (std::vector< MatcherFunc > matchers) |
| Combines multiple matchers with OR logic. | |
Type-agnostic pattern matching for computation rules.
Provides factory methods for creating matcher functions that can be used to determine if operations should be applied in specific contexts.
Definition at line 34 of file GrammarHelper.hpp.