Home
last modified time | relevance | path

Searched refs:priorityQueue (Results 1 – 1 of 1) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.cpp209 priorityQueue; in truncateUnigrams() local
221 priorityQueue.push(DictProbability(terminalPos, probability, in truncateUnigrams()
226 while (static_cast<int>(priorityQueue.size()) > maxUnigramCount) { in truncateUnigrams()
227 const int ptNodePos = priorityQueue.top().getDictPos(); in truncateUnigrams()
228 priorityQueue.pop(); in truncateUnigrams()
247 priorityQueue; in truncateBigrams() local
268 priorityQueue.push(DictProbability(entryPos, probability, in truncateBigrams()
274 while (static_cast<int>(priorityQueue.size()) > maxBigramCount) { in truncateBigrams()
275 const int entryPos = priorityQueue.top().getDictPos(); in truncateBigrams()
282 priorityQueue.pop(); in truncateBigrams()