Lines Matching refs:key_id

20   bool operator()(marisa::UInt32 key_id, const std::string &key) {  in operator ()()  argument
22 key_ids_.insert(num_results_, key_id); in operator ()()
42 std::string Trie::restore(UInt32 key_id) const { in restore()
44 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
46 restore_(key_id, &key); in restore()
50 void Trie::restore(UInt32 key_id, std::string *key) const { in restore() argument
52 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
54 restore_(key_id, key); in restore()
57 std::size_t Trie::restore(UInt32 key_id, char *key_buf, in restore() argument
60 MARISA_THROW_IF(key_id >= num_keys_, MARISA_PARAM_ERROR); in restore()
63 return restore_(key_id, key_buf, key_buf_size); in restore()
248 void Trie::restore_(UInt32 key_id, std::string *key) const { in restore_() argument
250 UInt32 node = key_id_to_node(key_id); in restore_()
295 std::size_t Trie::restore_(UInt32 key_id, char *key_buf, in restore_() argument
298 UInt32 node = key_id_to_node(key_id); in restore_()
538 const UInt32 key_id = node_to_key_id(node); in predict_breadth_first_() local
540 key_ids.insert(count, key_id); in predict_breadth_first_()
543 restore(key_id, &key); in predict_breadth_first_()
561 for (UInt32 key_id = key_id_begin; key_id < key_id_end; ++key_id) { in predict_breadth_first_() local
562 key_ids.insert(temp_count, key_id); in predict_breadth_first_()
570 for (UInt32 key_id = key_id_begin; key_id < key_id_end; ++key_id) { in predict_breadth_first_() local
572 restore(key_id, &key); in predict_breadth_first_()
635 key_ids.insert(count, cur.key_id()); in predict_depth_first_()
640 cur.set_key_id(cur.key_id() + 1); in predict_depth_first_()