OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:bitmapEntryIndex
(Results
1 - 4
of
4
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
language_model_dict_content.cpp
119
const int
bitmapEntryIndex
= getBitmapEntryIndex(prevWordIds);
120
if (
bitmapEntryIndex
== TrieMap::INVALID_INDEX) {
123
const TrieMap::Result result = mTrieMap.get(wordId,
bitmapEntryIndex
);
136
const int
bitmapEntryIndex
= createAndGetBitmapEntryIndex(prevWordIds);
137
if (
bitmapEntryIndex
== TrieMap::INVALID_INDEX) {
140
return mTrieMap.put(wordId, probabilityEntry->encode(mHasHistoricalInfo),
bitmapEntryIndex
);
145
const int
bitmapEntryIndex
= getBitmapEntryIndex(prevWordIds);
146
if (
bitmapEntryIndex
== TrieMap::INVALID_INDEX) {
150
return mTrieMap.remove(wordId,
bitmapEntryIndex
);
155
const int
bitmapEntryIndex
= getBitmapEntryIndex(prevWordIds)
[
all
...]
language_model_dict_content.h
242
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/
trie_map.h
98
TrieMapIterator(const TrieMap *const trieMap, const int
bitmapEntryIndex
)
99
: mTrieMap(trieMap), mStateStack(), mBaseBitmapEntryIndex(
bitmapEntryIndex
),
145
TrieMapRange(const TrieMap *const trieMap, const int
bitmapEntryIndex
)
146
: mTrieMap(trieMap), mBaseBitmapEntryIndex(
bitmapEntryIndex
) {};
180
// Returns
bitmapEntryIndex
. Create the next level map if it doesn't exist.
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 {
204
return TrieMapRange(this,
bitmapEntryIndex
);
[
all
...]
trie_map.cpp
67
int TrieMap::getNextLevelBitmapEntryIndex(const int key, const int
bitmapEntryIndex
) {
68
const Entry bitmapEntry = readEntry(
bitmapEntryIndex
);
97
const TrieMap::Result TrieMap::get(const int key, const int
bitmapEntryIndex
) const {
99
return getInternal(unsignedKey, getBitShuffledKey(unsignedKey),
bitmapEntryIndex
,
103
bool TrieMap::put(const int key, const uint64_t value, const int
bitmapEntryIndex
) {
108
return putInternal(unsignedKey, value, getBitShuffledKey(unsignedKey),
bitmapEntryIndex
,
109
readEntry(
bitmapEntryIndex
), 0 /* level */);
116
bool TrieMap::remove(const int key, const int
bitmapEntryIndex
) {
117
const Entry bitmapEntry = readEntry(
bitmapEntryIndex
);
278
* @param
bitmapEntryIndex
the index of bitmap entr
[
all
...]
Completed in 483 milliseconds