Lines Matching refs:agent_
85 : agent_(new (std::nothrow) marisa::Agent), buf_(NULL), buf_size_(0) { in Agent()
86 MARISA_THROW_IF(agent_ == NULL, ::MARISA_MEMORY_ERROR); in Agent()
90 delete agent_; in ~Agent()
111 agent_->set_query(buf_, length); in set_query()
115 agent_->set_query(id); in set_query()
119 return reinterpret_cast<const Key &>(agent_->key()); in key()
123 return reinterpret_cast<const Query &>(agent_->query()); in query()
127 *ptr_out = agent_->key().ptr(); in key_str()
128 *length_out = agent_->key().length(); in key_str()
132 return agent_->key().id(); in key_id()
136 *ptr_out = agent_->query().ptr(); in query_str()
137 *length_out = agent_->query().length(); in query_str()
141 return agent_->query().id(); in query_id()
169 return trie_->lookup(*agent.agent_); in lookup()
173 trie_->reverse_lookup(*agent.agent_); in reverse_lookup()
177 return trie_->common_prefix_search(*agent.agent_); in common_prefix_search()
181 return trie_->predictive_search(*agent.agent_); in predictive_search()