Home | History | Annotate | Download | only in marisa

Lines Matching defs:key_id

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