From 107f642630eed151e859583d493ee677b5b063b9 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 21 Apr 2015 11:19:00 +0800 Subject: add copy parameter to Bigram::load --- src/storage/ngram_bdb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/storage/ngram_bdb.h') 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: -- cgit