From 137145409fd1493e40f4482d89f71a0c7ebcc743 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 16 Aug 2010 14:04:22 +0800 Subject: add PhraseIndexError --- src/include/novel_types.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/novel_types.h') diff --git a/src/include/novel_types.h b/src/include/novel_types.h index 0edb5ec..17af150 100755 --- a/src/include/novel_types.h +++ b/src/include/novel_types.h @@ -80,6 +80,15 @@ enum RemoveIndexResult{ REMOVE_OK = 0, /* remove ok */ REMOVE_ITEM_DONOT_EXISTS /* item don't exists */ }; + +/* For Phrase Index */ +enum PhraseIndexError{ + ERROR_OK = 0, /* operate ok */ + ERROR_NO_SUB_PHRASE_INDEX, /* sub phrase index is not loaded */ + ERROR_NO_ITEM, /* item has a null slot */ + ERROR_OUT_OF_RANGE /* beyond the end of the sub phrase index */ +}; + /* * n-gram Definition * no B parameter(there are duplicated items in uni-gram and bi-gram) -- cgit