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

◆ matches_type()

template<ComputeData DataType>
RuleBuilder & MayaFlux::Yantra::ComputationGrammar::RuleBuilder::matches_type ( )
inline

Sets the matcher to check for a specific data type.

Template Parameters
DataTypeThe ComputeData type to match against
Returns
Reference to this builder for method chaining

Creates a type-based matcher that returns true when the input data is of the specified type. This is the most common matching strategy for type-specific operations.

Definition at line 372 of file ComputeGrammar.hpp.

373 {
374 m_rule.matcher = UniversalMatcher::create_type_matcher<DataType>();
375 return *this;
376 }
UniversalMatcher::MatcherFunc matcher
Function that determines if rule applies.

References MayaFlux::Yantra::ComputationGrammar::Rule::matcher.