Home | History | Annotate | Download | only in tools

Lines Matching defs:Key

16 typedef std::pair<std::string, double> Key;
57 " -I, --predict-ids get key IDs in predictive searches (default)\n"
58 " -i, --predict-strs restore key strings in predictive searches\n"
60 " -s, --print-time print time [us/key]\n"
129 void read_keys(std::istream *input, std::vector<Key> *keys) {
130 Key key;
136 key.second = std::strtod(&line[delim_pos + 1], &end_of_value);
140 key.second = 1.0;
143 key.second = 1.0;
145 key.first = line;
146 keys->push_back(key);
151 std::vector<Key> *keys) {
173 void benchmark_build(const std::vector<Key> &keys, int num_tries,
184 const std::vector<Key> &keys,
187 std::string key;
189 key.clear();
190 trie.restore(key_ids[i], &key);
191 if (key != keys[i].first) {
200 const std::vector<Key> &keys,
214 const std::vector<Key> &keys,
230 const std::vector<Key> &keys,
251 const std::vector<Key> &keys,
271 void benchmark(const std::vector<Key> &keys, int num_tries) {
287 std::vector<Key> keys;