Home
last modified time | relevance | path

Searched refs:PtNodeParams (Results 1 – 25 of 28) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.h70 virtual bool markPtNodeAsDeleted(const PtNodeParams *const toBeUpdatedPtNodeParams);
72 virtual bool markPtNodeAsMoved(const PtNodeParams *const toBeUpdatedPtNodeParams,
76 const PtNodeParams *const toBeUpdatedPtNodeParams);
78 virtual bool updatePtNodeUnigramProperty(const PtNodeParams *const toBeUpdatedPtNodeParams,
82 const PtNodeParams *const toBeUpdatedPtNodeParams, bool *const outNeedsToKeepPtNode);
84 virtual bool updateChildrenPosition(const PtNodeParams *const toBeUpdatedPtNodeParams,
87 bool updateTerminalId(const PtNodeParams *const toBeUpdatedPtNodeParams,
90 virtual bool writePtNodeAndAdvancePosition(const PtNodeParams *const ptNodeParams,
93 virtual bool writeNewTerminalPtNodeAndAdvancePosition(const PtNodeParams *const ptNodeParams,
102 const PtNodeParams *const sourcePtNodeParams, int *const outBigramEntryCount);
[all …]
Dver4_patricia_trie_node_writer.cpp46 const PtNodeParams *const toBeUpdatedPtNodeParams) { in markPtNodeAsDeleted()
75 const PtNodeParams *const toBeUpdatedPtNodeParams, in markPtNodeAsMoved()
104 const PtNodeParams childPtNodeParams(mReadingHelper.getPtNodeParams()); in markPtNodeAsMoved()
121 const PtNodeParams *const toBeUpdatedPtNodeParams) { in markPtNodeAsWillBecomeNonTerminal()
147 const PtNodeParams *const toBeUpdatedPtNodeParams, in updatePtNodeUnigramProperty()
164 const PtNodeParams *const toBeUpdatedPtNodeParams, bool *const outNeedsToKeepPtNode) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
199 const PtNodeParams *const toBeUpdatedPtNodeParams, const int newChildrenPosition) { in updateChildrenPosition()
205 bool Ver4PatriciaTrieNodeWriter::updateTerminalId(const PtNodeParams *const toBeUpdatedPtNodeParams, in updateTerminalId()
212 const PtNodeParams *const ptNodeParams, int *const ptNodeWritingPos) { in writePtNodeAndAdvancePosition()
219 const PtNodeParams *const ptNodeParams, const UnigramProperty *const unigramProperty, in writeNewTerminalPtNodeAndAdvancePosition()
[all …]
Dver4_patricia_trie_policy.cpp65 const PtNodeParams ptNodeParams = readingHelper.getPtNodeParams(); in createAndGetAllChildDicNodes()
125 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getWordAttributesInContext()
142 const PtNodeParams &ptNodeParams) const { in getWordAttributes()
166 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getProbabilityOfWord()
176 const PtNodeParams prevWordPtNodeParams = in getProbabilityOfWord()
203 const PtNodeParams prevWordPtNodeParams = in iterateNgramEntries()
246 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getShortcutPositionOfPtNode()
258 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getBigramsPositionOfPtNode()
343 const PtNodeParams ptNodeParams = mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in removeUnigramEntry()
557 const PtNodeParams ptNodeParams = mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in getWordProperty()
Dver4_patricia_trie_node_reader.cpp39 const PtNodeParams Ver4PatriciaTrieNodeReader::fetchPtNodeInfoFromBufferAndProcessMovedPtNode( in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
46 return PtNodeParams(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
102 return PtNodeParams(headPos, flags, parentPos, codePointCount, codePoints, in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_reader.h61 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos()
73 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
Dver4_patricia_trie_writing_helper.cpp229 const PtNodeParams ptNodeParams = in truncateUnigrams()
288 ::onVisitingPtNode(const PtNodeParams *const ptNodeParams) { in onVisitingPtNode()
Dver4_patricia_trie_writing_helper.h73 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_writer.h49 virtual bool markPtNodeAsDeleted(const PtNodeParams *const toBeUpdatedPtNodeParams);
51 virtual bool markPtNodeAsMoved(const PtNodeParams *const toBeUpdatedPtNodeParams,
55 const PtNodeParams *const toBeUpdatedPtNodeParams);
57 virtual bool updatePtNodeUnigramProperty(const PtNodeParams *const toBeUpdatedPtNodeParams,
61 const PtNodeParams *const toBeUpdatedPtNodeParams, bool *const outNeedsToKeepPtNode);
63 virtual bool updateChildrenPosition(const PtNodeParams *const toBeUpdatedPtNodeParams,
66 bool updateTerminalId(const PtNodeParams *const toBeUpdatedPtNodeParams,
69 virtual bool writePtNodeAndAdvancePosition(const PtNodeParams *const ptNodeParams,
72 virtual bool writeNewTerminalPtNodeAndAdvancePosition(const PtNodeParams *const ptNodeParams,
81 const PtNodeParams *const sourcePtNodeParams, int *const outBigramEntryCount);
[all …]
Dver4_patricia_trie_node_writer.cpp36 const PtNodeParams *const toBeUpdatedPtNodeParams) { in markPtNodeAsDeleted()
66 const PtNodeParams *const toBeUpdatedPtNodeParams, in markPtNodeAsMoved()
95 const PtNodeParams childPtNodeParams(mReadingHelper.getPtNodeParams()); in markPtNodeAsMoved()
112 const PtNodeParams *const toBeUpdatedPtNodeParams) { in markPtNodeAsWillBecomeNonTerminal()
138 const PtNodeParams *const toBeUpdatedPtNodeParams, in updatePtNodeUnigramProperty()
151 const PtNodeParams *const toBeUpdatedPtNodeParams, bool *const outNeedsToKeepPtNode) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
172 const PtNodeParams *const toBeUpdatedPtNodeParams, const int newChildrenPosition) { in updateChildrenPosition()
178 bool Ver4PatriciaTrieNodeWriter::updateTerminalId(const PtNodeParams *const toBeUpdatedPtNodeParams, in updateTerminalId()
185 const PtNodeParams *const ptNodeParams, int *const ptNodeWritingPos) { in writePtNodeAndAdvancePosition()
191 const PtNodeParams *const ptNodeParams, const UnigramProperty *const unigramProperty, in writeNewTerminalPtNodeAndAdvancePosition()
[all …]
Dver4_patricia_trie_node_reader.cpp30 const PtNodeParams Ver4PatriciaTrieNodeReader::fetchPtNodeInfoFromBufferAndProcessMovedPtNode( in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
37 return PtNodeParams(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
85 return PtNodeParams(headPos, flags, parentPos, codePointCount, codePoints, in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_policy.cpp56 const PtNodeParams ptNodeParams = readingHelper.getPtNodeParams(); in createAndGetAllChildDicNodes()
100 const PtNodeParams ptNodeParams = mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in getWordId()
171 const PtNodeParams ptNodeParams(mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos)); in getShortcutPositionOfWord()
258 const PtNodeParams ptNodeParams = mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(ptNodePos); in removeUnigramEntry()
590 const PtNodeParams ptNodeParams = in getNextWordAndNextToken()
Dver4_patricia_trie_node_reader.h41 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const { in fetchPtNodeParamsInBufferFromPtNodePos()
51 const PtNodeParams fetchPtNodeInfoFromBufferAndProcessMovedPtNode(const int ptNodePos,
Dver4_patricia_trie_writing_helper.h60 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp36 const PtNodeParams ptNodeParams(readingHelper->getPtNodeParams()); in addUnigramWord()
121 const PtNodeParams ptNodeParams(mPtNodeReader->fetchPtNodeParamsInBufferFromPtNodePos(wordPos)); in addShortcutTarget()
137 bool DynamicPtUpdatingHelper::setPtNodeProbability(const PtNodeParams *const originalPtNodeParams, in setPtNodeProbability()
148 const PtNodeParams ptNodeParamsToWrite(getUpdatedPtNodeParams(originalPtNodeParams, in setPtNodeProbability()
164 const PtNodeParams *const parentPtNodeParams, const UnigramProperty *const unigramProperty, in createChildrenPtNodeArrayAndAChildPtNode()
182 const PtNodeParams ptNodeParamsToWrite(getPtNodeParamsForNewPtNode( in createNewPtNodeArrayWithAChildPtNode()
199 const PtNodeParams *const reallocatingPtNodeParams, const size_t overlappingCodePointCount, in reallocatePtNodeAndAddNewPtNodes()
217 const PtNodeParams ptNodeParamsToWrite(getPtNodeParamsForNewPtNode( in reallocatePtNodeAndAddNewPtNodes()
225 const PtNodeParams ptNodeParamsToWrite(getPtNodeParamsForNewPtNode( in reallocatePtNodeAndAddNewPtNodes()
243 const PtNodeParams childPartPtNodeParams(getUpdatedPtNodeParams(reallocatingPtNodeParams, in reallocatePtNodeAndAddNewPtNodes()
[all …]
Dpt_node_writer.h50 virtual bool markPtNodeAsDeleted(const PtNodeParams *const toBeUpdatedPtNodeParams) = 0;
52 virtual bool markPtNodeAsMoved(const PtNodeParams *const toBeUpdatedPtNodeParams,
56 const PtNodeParams *const toBeUpdatedPtNodeParams) = 0;
58 virtual bool updatePtNodeUnigramProperty(const PtNodeParams *const toBeUpdatedPtNodeParams,
62 const PtNodeParams *const toBeUpdatedPtNodeParams,
65 virtual bool updateChildrenPosition(const PtNodeParams *const toBeUpdatedPtNodeParams,
68 virtual bool writePtNodeAndAdvancePosition(const PtNodeParams *const ptNodeParams,
71 virtual bool writeNewTerminalPtNodeAndAdvancePosition(const PtNodeParams *const ptNodeParams,
80 const PtNodeParams *const sourcePtNodeParams, int *const outBigramEntryCount) = 0;
82 virtual bool updateAllPositionFields(const PtNodeParams *const toBeUpdatedPtNodeParams,
[all …]
Ddynamic_pt_reading_helper.h52 virtual bool onVisitingPtNode(const PtNodeParams *const node) = 0;
68 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
124 AK_FORCE_INLINE const PtNodeParams getPtNodeParams() const { in getPtNodeParams()
126 return PtNodeParams(); in getPtNodeParams()
131 AK_FORCE_INLINE bool isValidTerminalNode(const PtNodeParams &ptNodeParams) const { in isValidTerminalNode()
135 AK_FORCE_INLINE bool isMatchedCodePoint(const PtNodeParams &ptNodeParams, const int index, in isMatchedCodePoint()
146 AK_FORCE_INLINE size_t getTotalCodePointCount(const PtNodeParams &ptNodeParams) const { in getTotalCodePointCount()
151 AK_FORCE_INLINE void fetchMergedNodeCodePointsInReverseOrder(const PtNodeParams &ptNodeParams, in fetchMergedNodeCodePointsInReverseOrder()
160 AK_FORCE_INLINE void readNextSiblingNode(const PtNodeParams &ptNodeParams) { in readNextSiblingNode()
170 AK_FORCE_INLINE void readChildNode(const PtNodeParams &ptNodeParams) { in readChildNode()
[all …]
Dpt_node_params.h32 class PtNodeParams {
35 PtNodeParams() : mHeadPos(NOT_A_DICT_POS), mFlags(0), mHasMovedFlag(false), in PtNodeParams() function
43 PtNodeParams(const PtNodeParams& ptNodeParams) in PtNodeParams() function
60 PtNodeParams(const int headPos, const PatriciaTrieReadingUtils::NodeFlags flags, in PtNodeParams() function
75 PtNodeParams(const int headPos, const PatriciaTrieReadingUtils::NodeFlags flags, in PtNodeParams() function
90 PtNodeParams(const PtNodeParams *const ptNodeParams, in PtNodeParams() function
108 PtNodeParams(const PatriciaTrieReadingUtils::NodeFlags flags, const int parentPos, in PtNodeParams() function
242 DISALLOW_ASSIGNMENT_OPERATOR(PtNodeParams);
Ddynamic_pt_updating_helper.h72 bool setPtNodeProbability(const PtNodeParams *const originalPtNodeParams,
75 bool createChildrenPtNodeArrayAndAChildPtNode(const PtNodeParams *const parentPtNodeParams,
83 bool reallocatePtNodeAndAddNewPtNodes(const PtNodeParams *const reallocatingPtNodeParams,
87 const PtNodeParams getUpdatedPtNodeParams(const PtNodeParams *const originalPtNodeParams,
91 const PtNodeParams getPtNodeParamsForNewPtNode(const bool isNotAWord,
Ddynamic_pt_reading_helper.cpp30 const PtNodeParams *const ptNodeParams) { in onVisitingPtNode()
49 const PtNodeParams ptNodeParams(getPtNodeParams()); in traverseAllPtNodesInPostorderDepthFirstManner()
117 const PtNodeParams ptNodeParams(getPtNodeParams()); in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner()
183 const PtNodeParams terminalPtNodeParams(getPtNodeParams()); in getCodePointsAndReturnCodePointCount()
192 const PtNodeParams ptNodeParams(getPtNodeParams()); in getCodePointsAndReturnCodePointCount()
222 const PtNodeParams ptNodeParams(getPtNodeParams()); in getTerminalPtNodePositionOfWord()
Ddynamic_pt_gc_event_listeners.h29 class PtNodeParams; variable
63 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
94 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
123 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
150 bool onVisitingPtNode(const PtNodeParams *const ptNodeParams);
Ddynamic_pt_gc_event_listeners.cpp28 ::onVisitingPtNode(const PtNodeParams *const ptNodeParams) { in onVisitingPtNode()
67 ::onVisitingPtNode(const PtNodeParams *const ptNodeParams) { in onVisitingPtNode()
112 ::onVisitingPtNode(const PtNodeParams *const ptNodeParams) { in onVisitingPtNode()
130 ::onVisitingPtNode(const PtNodeParams *const ptNodeParams) { in onVisitingPtNode()
Dpt_node_reader.h30 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dver2_patricia_trie_node_reader.cpp23 const PtNodeParams Ver2ParticiaTrieNodeReader::fetchPtNodeParamsInBufferFromPtNodePos( in fetchPtNodeParamsInBufferFromPtNodePos()
30 return PtNodeParams(); in fetchPtNodeParamsInBufferFromPtNodePos()
46 return PtNodeParams(); in fetchPtNodeParamsInBufferFromPtNodePos()
48 return PtNodeParams(ptNodePos, flags, mergedNodeCodePointCount, mergedNodeCodePoints, in fetchPtNodeParamsInBufferFromPtNodePos()
Dpatricia_trie_policy.cpp300 const PtNodeParams ptNodeParams = in getWordAttributesInContext()
318 const PtNodeParams &ptNodeParams) const { in getWordAttributes()
345 const PtNodeParams ptNodeParams = in getProbabilityOfWord()
434 const PtNodeParams ptNodeParams = in getWordProperty()
Dver2_patricia_trie_node_reader.h41 virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const;

12