Home | History | Annotate | Download | only in marisa

Lines Matching refs:Query

65   return find_callback_<const Query &>(Query(ptr, length), callback);
121 return predict_callback_<const Query &>(Query(ptr, length), callback);
147 inline bool Trie::find_child(UInt32 &node, T query,
163 trie_->trie_match<T>(get_link(node, link_id), query, pos) :
164 tail_match<T>(node, link_id, query, pos);
171 } else if (labels_[node] == query[pos]) {
182 std::size_t Trie::find_callback_(T query, U callback) const {
193 } while (!query.ends_at(pos) && find_child<T>(node, query, pos));
198 inline bool Trie::predict_child(UInt32 &node, T query, std::size_t &pos,
215 get_link(node, link_id), query, pos, key) :
216 tail_prefix_match<T>(node, link_id, query, pos, key);
223 } else if (labels_[node] == query[pos]) {
234 std::size_t Trie::predict_callback_(T query, U callback) const {
238 while (!query.ends_at(pos)) {
239 if (!predict_child<T>(node, query, pos, &key)) {
243 query.insert(&key);