summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table3.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-01-26 15:53:58 +0800
committerPeng Wu <alexepico@gmail.com>2016-01-26 15:53:58 +0800
commit105f9ac5332547ecec7169e5f52a9eaf1b641d6a (patch)
tree0aeba8eeae14af87b033a57564292e94b2fa5240 /src/storage/phrase_large_table3.h
parentc195ccfafdb0dee07e3ee04a04755a571bd474de (diff)
downloadlibpinyin-105f9ac5332547ecec7169e5f52a9eaf1b641d6a.tar.gz
libpinyin-105f9ac5332547ecec7169e5f52a9eaf1b641d6a.tar.xz
libpinyin-105f9ac5332547ecec7169e5f52a9eaf1b641d6a.zip
write phrase_large_table3_kyotodb.h
Diffstat (limited to 'src/storage/phrase_large_table3.h')
-rw-r--r--src/storage/phrase_large_table3.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/storage/phrase_large_table3.h b/src/storage/phrase_large_table3.h
index 8fe1203..13396d6 100644
--- a/src/storage/phrase_large_table3.h
+++ b/src/storage/phrase_large_table3.h
@@ -29,43 +29,6 @@
namespace pinyin{
-class PhraseTableEntry;
-
-class PhraseLargeTable3{
-protected:
- /* member variables. */
- PhraseTableEntry * m_entry;
-
- void reset();
-
-public:
- PhraseLargeTable3();
-
- ~PhraseLargeTable3(){
- reset();
- }
-
- /* load/store method */
- /* use in-memory DBM here, for better performance. */
- bool load(const char * filename);
-
- bool store(const char * new_filename);
-
- bool load_text(FILE * file);
-
- /* search method */
- int search(int phrase_length, /* in */ const ucs4_t phrase[],
- /* out */ PhraseTokens tokens) const;
-
- /* add_index/remove_index method */
- int add_index(int phrase_length, /* in */ const ucs4_t phrase[], /* in */ phrase_token_t token);
-
- int remove_index(int phrase_length, /* in */ const ucs4_t phrase[], /* in */ phrase_token_t token);
-
- /* mask out method */
- bool mask_out(phrase_token_t mask, phrase_token_t value);
-};
-
/**
* Data Structure:
* m_chunk consists of table entry header and array of tokens.