summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-05 14:19:20 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-05 14:21:34 +0800
commit9cf00098f4628fb9797bb14963686384d406883b (patch)
treeb806e21a5651ba4d3a6f81f1325fcd318b656b1d /src/storage/ngram.h
parent8ff7710aabb59538eb0b9b87c865d7aac5413032 (diff)
downloadlibpinyin-9cf00098f4628fb9797bb14963686384d406883b.tar.gz
libpinyin-9cf00098f4628fb9797bb14963686384d406883b.tar.xz
libpinyin-9cf00098f4628fb9797bb14963686384d406883b.zip
add const modifiers
Diffstat (limited to 'src/storage/ngram.h')
-rw-r--r--src/storage/ngram.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/ngram.h b/src/storage/ngram.h
index 8863392..73e422a 100644
--- a/src/storage/ngram.h
+++ b/src/storage/ngram.h
@@ -52,12 +52,12 @@ public:
/* Null Constructor */
SingleGram();
/* retrieve all items */
- bool retrieve_all(/* out */ BigramPhraseWithCountArray array);
+ bool retrieve_all(/* out */ BigramPhraseWithCountArray array) const;
/* search method */
/* the array result contains many items */
- bool search(/* in */ PhraseIndexRange * range,
- /* out */ BigramPhraseArray array);
+ bool search(/* in */ PhraseIndexRange * range,
+ /* out */ BigramPhraseArray array) const;
/* insert_freq method
*/
@@ -72,7 +72,7 @@ public:
/* get_freq method
*/
bool get_freq(/* in */ phrase_token_t token,
- /* out */ guint32 & freq);
+ /* out */ guint32 & freq) const;
/* set_freq method
*/