X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=TextCollection.h;h=ef0eb7210e57d4d72d8af50ac1be82097f6671c0;hb=580705e1bb680eba3cc20075f39365d10cc20012;hp=e7f0d4bb17de878d0d028c29d62b5b41ae50bad7;hpb=ccc18959e93d8986c0ce81209865a0a2b5f42be6;p=SXSI%2FTextCollection.git diff --git a/TextCollection.h b/TextCollection.h index e7f0d4b..ef0eb72 100644 --- a/TextCollection.h +++ b/TextCollection.h @@ -86,7 +86,13 @@ namespace SXSI * New texts can not be inserted after this operation. */ virtual void MakeStatic() = 0; - + + /** + tests if the string pointed to by DocId is empty + */ + + virtual bool EmptyText(DocId) const = 0; + /** * Displaying content * @@ -99,7 +105,7 @@ namespace SXSI * * Note: Parameters i and j are text positions inside the k'th text. */ - virtual uchar* GetText(DocId, TextPosition, TextPosition) const = 0; +// virtual uchar* GetText(DocId, TextPosition, TextPosition) const = 0; /** * Returns backwards (reverse) iterator to the end of i'th text * @@ -158,6 +164,12 @@ namespace SXSI typedef std::vector > full_result; virtual full_result FullContains(uchar const *) const = 0; + + /** + *Debug + * + */ + virtual TextPosition Lookup(TextPosition) const = 0; protected: // Protected constructor; call the static function InitTextCollection(). TextCollection() { };