diff options
author | Peng Wu <alexepico@gmail.com> | 2011-12-05 14:19:20 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-12-05 14:21:34 +0800 |
commit | 9cf00098f4628fb9797bb14963686384d406883b (patch) | |
tree | b806e21a5651ba4d3a6f81f1325fcd318b656b1d /src/storage/ngram.h | |
parent | 8ff7710aabb59538eb0b9b87c865d7aac5413032 (diff) | |
download | libpinyin-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.h | 8 |
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 */ |