Searched refs:mTrieMap (Results 1 – 3 of 3) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | language_model_dict_content.cpp | 32 return mTrieMap.save(file) && mGlobalCounters.save(file); in save() 38 return runGCInner(terminalIdMap, originalContent->mTrieMap.getEntriesInRootLevel(), in runGC() 46 bitmapEntryIndices[0] = mTrieMap.getRootBitmapEntryIndex(); in getWordAttributes() 50 mTrieMap.get(prevWordIds[i], bitmapEntryIndices[i]).mNextLevelBitmapEntryIndex; in getWordAttributes() 67 const TrieMap::Result result = mTrieMap.get(wordId, bitmapEntryIndices[i]); in getWordAttributes() 123 const TrieMap::Result result = mTrieMap.get(wordId, bitmapEntryIndex); in getNgramProbabilityEntry() 140 return mTrieMap.put(wordId, probabilityEntry->encode(mHasHistoricalInfo), bitmapEntryIndex); in setNgramProbabilityEntry() 150 return mTrieMap.remove(wordId, bitmapEntryIndex); in removeNgramProbabilityEntry() 156 return EntryRange(mTrieMap.getEntriesInSpecifiedLevel(bitmapEntryIndex), mHasHistoricalInfo); in getProbabilityEntries() 162 const TrieMap::Result result = mTrieMap.getRoot(wordId); in exportAllNgramEntriesRelatedToWord() [all …]
|
D | language_model_dict_content.h | 137 : mTrieMap(buffers[TRIE_MAP_BUFFER_INDEX]), in LanguageModelDictContent() 142 : mTrieMap(), mGlobalCounters(), mHasHistoricalInfo(hasHistoricalInfo) {} in LanguageModelDictContent() 145 return mTrieMap.isNearSizeLimit() || mGlobalCounters.needsToHalveCounters(); in isNearSizeLimit() 184 if (!updateAllProbabilityEntriesForGCInner(mTrieMap.getRootBitmapEntryIndex(), in updateAllProbabilityEntriesForGC() 234 TrieMap mTrieMap; variable
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.h | 68 : mTrieMap(trieMap), mKey(key), mValue(value), in IterationResult() 72 return TrieMapRange(mTrieMap, mNextLevelBitmapEntryIndex); in getEntriesInNextLevel() 92 const TrieMap *const mTrieMap; 99 : mTrieMap(trieMap), mStateStack(), mBaseBitmapEntryIndex(bitmapEntryIndex), in TrieMapIterator() 104 const Entry bitmapEntry = mTrieMap->readEntry(mBaseBitmapEntryIndex); in TrieMapIterator() 106 mTrieMap->popCount(bitmapEntry.getBitmap()), bitmapEntry.getTableIndex()); in TrieMapIterator() 111 return IterationResult(mTrieMap, mKey, mValue, mNextLevelBitmapEntryIndex); 120 const Result result = mTrieMap->iterateNext(&mStateStack, &mKey); 131 const TrieMap *const mTrieMap; variable 146 : mTrieMap(trieMap), mBaseBitmapEntryIndex(bitmapEntryIndex) {}; in TrieMapRange() [all …]
|