Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp119 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds); in getNgramProbabilityEntry() local
120 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in getNgramProbabilityEntry()
123 const TrieMap::Result result = mTrieMap.get(wordId, bitmapEntryIndex); in getNgramProbabilityEntry()
136 const int bitmapEntryIndex = createAndGetBitmapEntryIndex(prevWordIds); in setNgramProbabilityEntry() local
137 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in setNgramProbabilityEntry()
140 return mTrieMap.put(wordId, probabilityEntry->encode(mHasHistoricalInfo), bitmapEntryIndex); in setNgramProbabilityEntry()
145 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds); in removeNgramProbabilityEntry() local
146 if (bitmapEntryIndex == TrieMap::INVALID_INDEX) { in removeNgramProbabilityEntry()
150 return mTrieMap.remove(wordId, bitmapEntryIndex); in removeNgramProbabilityEntry()
155 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds); in getProbabilityEntries() local
[all …]
Dlanguage_model_dict_content.h242 bool updateAllProbabilityEntriesForGCInner(const int bitmapEntryIndex, const int prevWordCount,
248 const int bitmapEntryIndex, std::vector<int> *const prevWordIds,
254 const int bitmapEntryIndex, std::vector<int> *const prevWordIds,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dtrie_map.h98 TrieMapIterator(const TrieMap *const trieMap, const int bitmapEntryIndex) in TrieMapIterator() argument
99 : mTrieMap(trieMap), mStateStack(), mBaseBitmapEntryIndex(bitmapEntryIndex), in TrieMapIterator()
145 TrieMapRange(const TrieMap *const trieMap, const int bitmapEntryIndex) in TrieMapRange() argument
146 : mTrieMap(trieMap), mBaseBitmapEntryIndex(bitmapEntryIndex) {}; in TrieMapRange()
185 int getNextLevelBitmapEntryIndex(const int key, const int bitmapEntryIndex);
191 const Result get(const int key, const int bitmapEntryIndex) const;
197 bool put(const int key, const uint64_t value, const int bitmapEntryIndex);
203 const TrieMapRange getEntriesInSpecifiedLevel(const int bitmapEntryIndex) const { in getEntriesInSpecifiedLevel() argument
204 return TrieMapRange(this, bitmapEntryIndex); in getEntriesInSpecifiedLevel()
209 bool remove(const int key, const int bitmapEntryIndex);
[all …]
Dtrie_map.cpp67 int TrieMap::getNextLevelBitmapEntryIndex(const int key, const int bitmapEntryIndex) { in getNextLevelBitmapEntryIndex() argument
68 const Entry bitmapEntry = readEntry(bitmapEntryIndex); in getNextLevelBitmapEntryIndex()
97 const TrieMap::Result TrieMap::get(const int key, const int bitmapEntryIndex) const { in get()
99 return getInternal(unsignedKey, getBitShuffledKey(unsignedKey), bitmapEntryIndex, in get()
103 bool TrieMap::put(const int key, const uint64_t value, const int bitmapEntryIndex) { in put() argument
108 return putInternal(unsignedKey, value, getBitShuffledKey(unsignedKey), bitmapEntryIndex, in put()
109 readEntry(bitmapEntryIndex), 0 /* level */); in put()
116 bool TrieMap::remove(const int key, const int bitmapEntryIndex) { in remove() argument
117 const Entry bitmapEntry = readEntry(bitmapEntryIndex); in remove()
284 const int bitmapEntryIndex, const int level) const { in getInternal() argument
[all …]