aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/words_priority_queue.h
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-01-16 00:20:06 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-16 00:20:06 -0800
commit53c4248c6f33891ec76cd0f5054c00eea2f7957c (patch)
treeb75b4042868fc705a056854d4b33fa9bad533c74 /native/src/words_priority_queue.h
parent65b489cd76e8ae4898bf4788c013f245487cb1d7 (diff)
parent67e13976b78619ec7bc45b5377a9f5da2534cfd5 (diff)
downloadlatinime-53c4248c6f33891ec76cd0f5054c00eea2f7957c.tar.gz
latinime-53c4248c6f33891ec76cd0f5054c00eea2f7957c.tar.xz
latinime-53c4248c6f33891ec76cd0f5054c00eea2f7957c.zip
am 67e13976: Merge "Store suggestions for each input length for missing space algorithm etc."
* commit '67e13976b78619ec7bc45b5377a9f5da2534cfd5': Store suggestions for each input length for missing space algorithm etc.
Diffstat (limited to 'native/src/words_priority_queue.h')
-rw-r--r--native/src/words_priority_queue.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/native/src/words_priority_queue.h b/native/src/words_priority_queue.h
index ce5d2ce51..54bf27a59 100644
--- a/native/src/words_priority_queue.h
+++ b/native/src/words_priority_queue.h
@@ -128,6 +128,13 @@ class WordsPriorityQueue {
}
}
+ void dumpTopWord() {
+ if (size() <= 0) {
+ return;
+ }
+ DUMP_WORD(mSuggestions.top()->mWord, mSuggestions.top()->mWordLength);
+ }
+
private:
struct wordComparator {
bool operator ()(SuggestedWord * left, SuggestedWord * right) {