MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Yantra::Matcher Class Reference

Type-agnostic pattern matching for computation rules. More...

#include <GrammarHelper.hpp>

Collaboration diagram for MayaFlux::Yantra::Matcher:

Public Types

using MatcherFunc = std::function<bool(const std::any&, const ExecutionContext&)>

Static Public Member Functions

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.
template<ComputeData DataType>
static MatcherFunc create_type_matcher ()
 Creates a matcher that checks for specific data types.

Detailed Description

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 48 of file GrammarHelper.hpp.


The documentation for this class was generated from the following file: