diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-15 13:12:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-15 13:12:32 +0800 |
commit | aedbe291325b62efee3307699107c9594e23d394 (patch) | |
tree | 17e60bceef4731cde6668b034b89495512937aa0 | |
parent | db0aa4dec5793e99a3405368565b5f4f0e05ee64 (diff) | |
download | libpinyin-aedbe291325b62efee3307699107c9594e23d394.tar.gz libpinyin-aedbe291325b62efee3307699107c9594e23d394.tar.xz libpinyin-aedbe291325b62efee3307699107c9594e23d394.zip |
update chewing_large_table2_kyotodb.h
-rw-r--r-- | src/storage/chewing_large_table2_kyotodb.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table2_kyotodb.h b/src/storage/chewing_large_table2_kyotodb.h index fbc7b2f..26546f5 100644 --- a/src/storage/chewing_large_table2_kyotodb.h +++ b/src/storage/chewing_large_table2_kyotodb.h @@ -47,6 +47,37 @@ protected: void reset(); +protected: + template<int phrase_length> + int search_internal(/* in */ const ChewingKey index[], + /* in */ const ChewingKey keys[], + /* out */ PhraseIndexRanges ranges) const; + + int search_internal(int phrase_length, + /* in */ const ChewingKey index[], + /* in */ const ChewingKey keys[], + /* out */ PhraseIndexRanges ranges) const; + + template<int phrase_length> + int add_index_internal(/* in */ const ChewingKey index[], + /* in */ const ChewingKey keys[], + /* in */ phrase_token_t token); + + int add_index_internal(int phrase_length, + /* in */ const ChewingKey index[], + /* in */ const ChewingKey keys[], + /* in */ phrase_token_t token); + + template<int phrase_length> + int remove_index_internal(/* in */ const ChewingKey index[], + /* in */ const ChewingKey keys[], + /* in */ phrase_token_t token); + + int remove_index_internal(int phrase_length, + /* in */ const ChewingKey index[], + /* in */ const ChewingKey keys[], + /* in */ phrase_token_t token); + public: ChewingLargeTable2(); |