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

377 {
378 m_rule.matcher = UniversalMatcher::create_type_matcher<DataType>();
379 return *this;
380 }
UniversalMatcher::MatcherFunc matcher
Function that determines if rule applies.

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