summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram_kyotodb.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-04-21 11:19:00 +0800
committerPeng Wu <alexepico@gmail.com>2015-04-21 11:19:00 +0800
commit107f642630eed151e859583d493ee677b5b063b9 (patch)
tree872ace6691a67facb5e326eeb118878b5f4d7dac /src/storage/ngram_kyotodb.h
parentfb3a0fa827098b9c2f8885e1e55e761deccdac1d (diff)
downloadlibpinyin-107f642630eed151e859583d493ee677b5b063b9.tar.gz
libpinyin-107f642630eed151e859583d493ee677b5b063b9.tar.xz
libpinyin-107f642630eed151e859583d493ee677b5b063b9.zip
add copy parameter to Bigram::load
Diffstat (limited to 'src/storage/ngram_kyotodb.h')
-rw-r--r--src/storage/ngram_kyotodb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/storage/ngram_kyotodb.h b/src/storage/ngram_kyotodb.h
index 2c156de..39ca82a 100644
--- a/src/storage/ngram_kyotodb.h
+++ b/src/storage/ngram_kyotodb.h
@@ -96,13 +96,15 @@ public:
* Bigram::load:
* @index: the previous token in the bi-gram.
* @single_gram: the single gram of the previous token.
+ * @copy: whether copy content to the single gram.
* @returns: whether the load operation is successful.
*
* Load the single gram of the previous token.
*
*/
bool load(/* in */ phrase_token_t index,
- /* out */ SingleGram * & single_gram);
+ /* out */ SingleGram * & single_gram,
+ bool copy=false);
/**
* Bigram::store: