summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-18 14:05:21 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-18 14:05:21 +0800
commitac7b8fa13887e0e663b515f40e4cbc7b2c2b9661 (patch)
tree9c1a73a1baee17f787f46b4af11a5874cfa32be3 /src/storage/ngram.h
parenta0412414b3b5f8647ff41405254dbcb4e334e3ae (diff)
downloadlibpinyin-ac7b8fa13887e0e663b515f40e4cbc7b2c2b9661.tar.gz
libpinyin-ac7b8fa13887e0e663b515f40e4cbc7b2c2b9661.tar.xz
libpinyin-ac7b8fa13887e0e663b515f40e4cbc7b2c2b9661.zip
add retrieve_all defination.
Diffstat (limited to 'src/storage/ngram.h')
-rw-r--r--src/storage/ngram.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/ngram.h b/src/storage/ngram.h
index 7a723cd..42f7aaf 100644
--- a/src/storage/ngram.h
+++ b/src/storage/ngram.h
@@ -47,6 +47,9 @@ private:
public:
/* Null Constructor */
SingleGram();
+ /* retrieve all items */
+ bool retrieve_all(/* out */ BigramPhraseWithCountArray array);
+
/* search method */
/* the array result contains many items */
bool search(/* in */ PhraseIndexRange * range,