diff options
author | Peng Wu <alexepico@gmail.com> | 2015-04-21 11:19:00 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-04-21 11:19:00 +0800 |
commit | 107f642630eed151e859583d493ee677b5b063b9 (patch) | |
tree | 872ace6691a67facb5e326eeb118878b5f4d7dac /src/storage/ngram_bdb.h | |
parent | fb3a0fa827098b9c2f8885e1e55e761deccdac1d (diff) | |
download | libpinyin-107f642630eed151e859583d493ee677b5b063b9.tar.gz libpinyin-107f642630eed151e859583d493ee677b5b063b9.tar.xz libpinyin-107f642630eed151e859583d493ee677b5b063b9.zip |
add copy parameter to Bigram::load
Diffstat (limited to 'src/storage/ngram_bdb.h')
-rw-r--r-- | src/storage/ngram_bdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage/ngram_bdb.h b/src/storage/ngram_bdb.h index a1e70d3..d7c8584 100644 --- a/src/storage/ngram_bdb.h +++ b/src/storage/ngram_bdb.h @@ -92,13 +92,14 @@ 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: |