summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-04-18 14:25:42 +0800
committerPeng Wu <alexepico@gmail.com>2011-04-18 14:25:42 +0800
commitd91242f6b9577c1eeef98929c8420e1bcd18e6ec (patch)
tree27db82238aeb418c1d3032faaf547783426ca1c8 /src/storage/ngram.h
parent2f85c451d14b0bb0284daf25d7b4f639355532c2 (diff)
downloadlibpinyin-d91242f6b9577c1eeef98929c8420e1bcd18e6ec.tar.gz
libpinyin-d91242f6b9577c1eeef98929c8420e1bcd18e6ec.tar.xz
libpinyin-d91242f6b9577c1eeef98929c8420e1bcd18e6ec.zip
add insert/remove freq to bi-gram
Diffstat (limited to 'src/storage/ngram.h')
-rw-r--r--src/storage/ngram.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/storage/ngram.h b/src/storage/ngram.h
index c5e7bc8..290a0bc 100644
--- a/src/storage/ngram.h
+++ b/src/storage/ngram.h
@@ -55,13 +55,25 @@ public:
bool search(/* in */ PhraseIndexRange * range,
/* out */ BigramPhraseArray array);
+ /* insert_freq method
+ */
+ bool insert_freq(/* in */ phrase_token_t token,
+ /* in */ guint32 freq);
+
+ /* remove_freq method
+ */
+ bool remove_freq(/* in */ phrase_token_t token,
+ /* out */ guint32 & freq);
+
+ /* get_freq method
+ */
bool get_freq(/* in */ phrase_token_t token,
/* out */ guint32 & freq);
/* set_freq method
*/
bool set_freq(/* in */ phrase_token_t token,
- guint32 freq);
+ /* in */ guint32 freq);
/* get_total_freq method
* used in user bigram table