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

◆ create_type_matcher()

template<ComputeData DataType>
MatcherFunc MayaFlux::Yantra::Matcher::create_type_matcher ( )
inlinestatic

Creates a matcher that checks for specific data types.

Template Parameters
DataTypeThe ComputeData type to match
Returns
Matcher function that returns true if input matches DataType

Definition at line 58 of file GrammarHelper.hpp.

59 {
60 return [](const std::any& input, const ExecutionContext& /*ctx*/) -> bool {
61 return static_cast<bool>(safe_any_cast<Datum<DataType>>(input));
62 };
63 }

Referenced by MayaFlux::Yantra::ComputationGrammar::RuleBuilder::matches_type().

Here is the caller graph for this function: