• Home
  • Raw
  • Download

Lines Matching refs:cache_id

490   const std::size_t cache_id = get_cache_id(parent, label);  in cache()  local
491 if (weight > cache_[cache_id].weight()) { in cache()
492 cache_[cache_id].set_parent(parent); in cache()
493 cache_[cache_id].set_child(child); in cache()
494 cache_[cache_id].set_weight(weight); in cache()
513 const std::size_t cache_id = get_cache_id(child); in cache() local
514 if (weight > cache_[cache_id].weight()) { in cache()
515 cache_[cache_id].set_parent(parent); in cache()
516 cache_[cache_id].set_child(child); in cache()
517 cache_[cache_id].set_weight(weight); in cache()
607 const std::size_t cache_id = get_cache_id(state.node_id(), in find_child() local
609 if (state.node_id() == cache_[cache_id].parent()) { in find_child()
610 if (cache_[cache_id].extra() != MARISA_INVALID_EXTRA) { in find_child()
611 if (!match(agent, cache_[cache_id].link())) { in find_child()
617 state.set_node_id(cache_[cache_id].child()); in find_child()
652 const std::size_t cache_id = get_cache_id(state.node_id(), in predictive_find_child() local
654 if (state.node_id() == cache_[cache_id].parent()) { in predictive_find_child()
655 if (cache_[cache_id].extra() != MARISA_INVALID_EXTRA) { in predictive_find_child()
656 if (!prefix_match(agent, cache_[cache_id].link())) { in predictive_find_child()
660 state.key_buf().push_back(cache_[cache_id].label()); in predictive_find_child()
663 state.set_node_id(cache_[cache_id].child()); in predictive_find_child()
723 const std::size_t cache_id = get_cache_id(node_id); in restore_() local
724 if (node_id == cache_[cache_id].child()) { in restore_()
725 if (cache_[cache_id].extra() != MARISA_INVALID_EXTRA) { in restore_()
726 restore(agent, cache_[cache_id].link()); in restore_()
728 state.key_buf().push_back(cache_[cache_id].label()); in restore_()
731 node_id = cache_[cache_id].parent(); in restore_()
758 const std::size_t cache_id = get_cache_id(node_id); in match_() local
759 if (node_id == cache_[cache_id].child()) { in match_()
760 if (cache_[cache_id].extra() != MARISA_INVALID_EXTRA) { in match_()
761 if (!match(agent, cache_[cache_id].link())) { in match_()
764 } else if (cache_[cache_id].label() == in match_()
771 node_id = cache_[cache_id].parent(); in match_()
810 const std::size_t cache_id = get_cache_id(node_id); in prefix_match_() local
811 if (node_id == cache_[cache_id].child()) { in prefix_match_()
812 if (cache_[cache_id].extra() != MARISA_INVALID_EXTRA) { in prefix_match_()
813 if (!prefix_match(agent, cache_[cache_id].link())) { in prefix_match_()
816 } else if (cache_[cache_id].label() == in prefix_match_()
818 state.key_buf().push_back(cache_[cache_id].label()); in prefix_match_()
824 node_id = cache_[cache_id].parent(); in prefix_match_()