98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
void setupVars();
ptr< unordered_map< StringId, any > > m_pVars;
uint32_t m_complexity = 0; // Each matched structural element of the pattern (vector) adds 1,
// each matched literal element of the pattern adds 2
};
extern optional< MatchSolution > Match( const Term& expression, const Term& pattern );
template< typename U >
static Generator< pair< MatchSolution, const U& > > Match( const Term& expression, const Trie< U >& patterns );
}
#endif
|
<
<
|
98
99
100
101
102
103
104
105
106
107
108
109
|
void setupVars();
ptr< unordered_map< StringId, any > > m_pVars;
uint32_t m_complexity = 0; // Each matched structural element of the pattern (vector) adds 1,
// each matched literal element of the pattern adds 2
};
template< typename U >
static Generator< pair< MatchSolution, const U& > > Match( const Term& expression, const Trie< U >& patterns );
}
#endif
|