summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_large_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/chewing_large_table.h')
-rw-r--r--src/storage/chewing_large_table.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/storage/chewing_large_table.h b/src/storage/chewing_large_table.h
index 746c18d..59f494e 100644
--- a/src/storage/chewing_large_table.h
+++ b/src/storage/chewing_large_table.h
@@ -75,12 +75,15 @@ public:
/* search method */
int search(int phrase_length, /* in */ ChewingKey keys[],
/* out */ PhraseIndexRanges ranges) const;
+
/* add/remove index method */
int add_index(int phrase_length, /* in */ ChewingKey keys[],
/* in */ phrase_token_t token);
int remove_index(int phrase_length, /* in */ ChewingKey keys[],
/* in */ phrase_token_t token);
+ /* mask out method */
+ bool mask_out(phrase_token_t mask, phrase_token_t value);
};
@@ -138,6 +141,10 @@ public:
return m_bitmap_table.remove_index(phrase_length, keys, token);
}
+ /* mask out method */
+ bool mask_out(phrase_token_t mask, phrase_token_t value) {
+ return m_bitmap_table.mask_out(mask, value);
+ }
};
};