summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table2.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-11-07 13:51:36 +0800
committerPeng Wu <alexepico@gmail.com>2012-11-07 13:55:12 +0800
commit269525df8c441ca1f6b3df3991b819ed8775139e (patch)
tree542be710865c8b602c078df78436548337f3ac0a /src/storage/phrase_large_table2.h
parentb4b9e9b1371a8aa16bbab99dfdb84608ead6507a (diff)
downloadlibpinyin-269525df8c441ca1f6b3df3991b819ed8775139e.tar.gz
libpinyin-269525df8c441ca1f6b3df3991b819ed8775139e.tar.xz
libpinyin-269525df8c441ca1f6b3df3991b819ed8775139e.zip
write mask out for phrase large table2
Diffstat (limited to 'src/storage/phrase_large_table2.h')
-rw-r--r--src/storage/phrase_large_table2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/storage/phrase_large_table2.h b/src/storage/phrase_large_table2.h
index c853f48..74e7b3c 100644
--- a/src/storage/phrase_large_table2.h
+++ b/src/storage/phrase_large_table2.h
@@ -55,6 +55,9 @@ public:
int add_index(int phrase_length, /* in */ ucs4_t phrase[], /* in */ phrase_token_t token);
int remove_index(int phrase_length, /* in */ ucs4_t phrase[], /* in */ phrase_token_t token);
+
+ /* mask out method */
+ bool mask_out(phrase_token_t mask, phrase_token_t value);
};
@@ -106,6 +109,11 @@ public:
int remove_index(int phrase_length, /* in */ ucs4_t phrase[], /* in */ phrase_token_t token) {
return m_bitmap_table.remove_index(phrase_length, phrase, token);
}
+
+ /* mask out method */
+ bool mask_out(phrase_token_t mask, phrase_token_t value) {
+ return m_bitmap_table.mask_out(mask, value);
+ }
};