
marvin at rectangular
Sep 10, 2008, 10:20 PM
Post #1 of 1
(2183 views)
Permalink
|
|
r3869 - in trunk/c_src/KinoSearch: . Index Search Util
|
|
Author: creamyg Date: 2008-09-10 22:21:58 -0700 (Wed, 10 Sep 2008) New Revision: 3869 Modified: trunk/c_src/KinoSearch/Index/LexStepper.bp trunk/c_src/KinoSearch/Index/SkipStepper.bp trunk/c_src/KinoSearch/Index/TermInfo.bp trunk/c_src/KinoSearch/Index/TermVector.bp trunk/c_src/KinoSearch/Obj.bp trunk/c_src/KinoSearch/Search/ANDQuery.bp trunk/c_src/KinoSearch/Search/Compiler.bp trunk/c_src/KinoSearch/Search/LeafQuery.bp trunk/c_src/KinoSearch/Search/MatchAllQuery.bp trunk/c_src/KinoSearch/Search/NOTQuery.bp trunk/c_src/KinoSearch/Search/NoMatchQuery.bp trunk/c_src/KinoSearch/Search/ORQuery.bp trunk/c_src/KinoSearch/Search/PhraseQuery.bp trunk/c_src/KinoSearch/Search/PolyQuery.bp trunk/c_src/KinoSearch/Search/RangeQuery.bp trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp trunk/c_src/KinoSearch/Search/TermQuery.bp trunk/c_src/KinoSearch/Util/ByteBuf.bp trunk/c_src/KinoSearch/Util/CharBuf.bp trunk/c_src/KinoSearch/Util/Num.bp Log: Make To_String() and Equals() public. Modified: trunk/c_src/KinoSearch/Index/LexStepper.bp =================================================================== --- trunk/c_src/KinoSearch/Index/LexStepper.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Index/LexStepper.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -53,7 +53,7 @@ void Destroy(LexStepper *self); - incremented CharBuf* + public incremented CharBuf* To_String(LexStepper *self); } Modified: trunk/c_src/KinoSearch/Index/SkipStepper.bp =================================================================== --- trunk/c_src/KinoSearch/Index/SkipStepper.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Index/SkipStepper.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -23,7 +23,7 @@ void Reset(SkipStepper *self, i32_t doc_num, u64_t filepos); - incremented CharBuf* + public incremented CharBuf* To_String(SkipStepper *self); } Modified: trunk/c_src/KinoSearch/Index/TermInfo.bp =================================================================== --- trunk/c_src/KinoSearch/Index/TermInfo.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Index/TermInfo.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -38,7 +38,7 @@ incremented TermInfo* Clone(TermInfo *self); - incremented CharBuf* + public incremented CharBuf* To_String(TermInfo *self); } Modified: trunk/c_src/KinoSearch/Index/TermVector.bp =================================================================== --- trunk/c_src/KinoSearch/Index/TermVector.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Index/TermVector.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -36,7 +36,7 @@ public incremented TermVector* Deserialize(TermVector *self, InStream *instream); - bool_t + public bool_t Equals(TermVector *self, Obj *other); void Modified: trunk/c_src/KinoSearch/Obj.bp =================================================================== --- trunk/c_src/KinoSearch/Obj.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Obj.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -75,7 +75,7 @@ /* Indicate whether two objects are the same. By default, compares the memory * address. */ - bool_t + public bool_t Equals(Obj *self, Obj *other); /* Return a hash code for the object -- by default, the memory address. @@ -101,7 +101,7 @@ /* Generic stringification: ClassName [at] hex_mem_addres */ - incremented CharBuf* + public incremented CharBuf* To_String(Obj *self); /* Serialize the object by writing to the supplied OutStream. Modified: trunk/c_src/KinoSearch/Search/ANDQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/ANDQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/ANDQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -19,7 +19,7 @@ public incremented Compiler* Make_Compiler(ANDQuery *self, Searchable *searchable, float boost); - incremented CharBuf* + public incremented CharBuf* To_String(ANDQuery *self); } Modified: trunk/c_src/KinoSearch/Search/Compiler.bp =================================================================== --- trunk/c_src/KinoSearch/Search/Compiler.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/Compiler.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -135,10 +135,10 @@ public incremented Compiler* Deserialize(Compiler *self, InStream *instream); - bool_t + public bool_t Equals(Compiler *self, Obj *other); - incremented CharBuf* + public incremented CharBuf* To_String(Compiler *self); void Modified: trunk/c_src/KinoSearch/Search/LeafQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/LeafQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/LeafQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -35,10 +35,10 @@ public CharBuf* Get_Text(LeafQuery *self); - bool_t + public bool_t Equals(LeafQuery *self, Obj *other); - incremented CharBuf* + public incremented CharBuf* To_String(LeafQuery *self); public void Modified: trunk/c_src/KinoSearch/Search/MatchAllQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/MatchAllQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/MatchAllQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -18,10 +18,10 @@ public static MatchAllQuery* init(MatchAllQuery *self); - bool_t + public bool_t Equals(MatchAllQuery *self, Obj *other); - incremented CharBuf* + public incremented CharBuf* To_String(MatchAllQuery *self); public incremented Compiler* Modified: trunk/c_src/KinoSearch/Search/NOTQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/NOTQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/NOTQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -36,7 +36,7 @@ public void Set_Negated_Query(NOTQuery *self, Query *negated_query); - incremented CharBuf* + public incremented CharBuf* To_String(NOTQuery *self); public incremented Compiler* Modified: trunk/c_src/KinoSearch/Search/NoMatchQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/NoMatchQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/NoMatchQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -16,10 +16,10 @@ public static NoMatchQuery* init(NoMatchQuery *self); - bool_t + public bool_t Equals(NoMatchQuery *self, Obj *other); - incremented CharBuf* + public incremented CharBuf* To_String(NoMatchQuery *self); public incremented Compiler* Modified: trunk/c_src/KinoSearch/Search/ORQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/ORQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/ORQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -20,7 +20,7 @@ public incremented Compiler* Make_Compiler(ORQuery *self, Searchable *searchable, float boost); - incremented CharBuf* + public incremented CharBuf* To_String(ORQuery *self); } Modified: trunk/c_src/KinoSearch/Search/PhraseQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/PhraseQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/PhraseQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -37,10 +37,10 @@ public incremented Compiler* Make_Compiler(PhraseQuery *self, Searchable *searchable, float boost); - bool_t + public bool_t Equals(PhraseQuery *self, Obj *other); - incremented CharBuf* + public incremented CharBuf* To_String(PhraseQuery *self); public void @@ -83,7 +83,7 @@ Highlight_Spans(PhraseCompiler *self, Searchable *searchable, DocVector *doc_vec, const CharBuf *field); - bool_t + public bool_t Equals(PhraseCompiler *self, Obj *other); public void Modified: trunk/c_src/KinoSearch/Search/PolyQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/PolyQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/PolyQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -30,7 +30,7 @@ public incremented PolyQuery* Deserialize(PolyQuery *self, InStream *instream); - bool_t + public bool_t Equals(PolyQuery *self, Obj *other); void Modified: trunk/c_src/KinoSearch/Search/RangeQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/RangeQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/RangeQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -40,10 +40,10 @@ Obj *lower_term = NULL, Obj *upper_term = NULL, bool_t include_lower = true, bool_t include_upper = true); - bool_t + public bool_t Equals(RangeQuery *self, Obj *other); - incremented CharBuf* + public incremented CharBuf* To_String(RangeQuery *self); public incremented RangeCompiler* Modified: trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -42,7 +42,7 @@ public void Set_Optional_Query(RequiredOptionalQuery *self, Query *optional_query); - incremented CharBuf* + public incremented CharBuf* To_String(RequiredOptionalQuery *self); public incremented Compiler* Modified: trunk/c_src/KinoSearch/Search/TermQuery.bp =================================================================== --- trunk/c_src/KinoSearch/Search/TermQuery.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Search/TermQuery.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -38,7 +38,7 @@ public incremented Compiler* Make_Compiler(TermQuery *self, Searchable *searchable, float boost); - incremented CharBuf* + public incremented CharBuf* To_String(TermQuery *self); public void @@ -47,7 +47,7 @@ public incremented TermQuery* Deserialize(TermQuery *self, InStream *instream); - bool_t + public bool_t Equals(TermQuery *self, Obj *other); void @@ -82,7 +82,7 @@ Highlight_Spans(TermCompiler *self, Searchable *searchable, DocVector *doc_vec, const CharBuf *field); - bool_t + public bool_t Equals(TermCompiler *self, Obj *other); public void Modified: trunk/c_src/KinoSearch/Util/ByteBuf.bp =================================================================== --- trunk/c_src/KinoSearch/Util/ByteBuf.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Util/ByteBuf.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -101,7 +101,7 @@ /* Test whether the ByteBuf matches the passed-in string. */ - bool_t + public bool_t Equals_Str(ByteBuf *self, const char *ptr, size_t len); incremented ByteBuf* @@ -110,7 +110,7 @@ void Destroy(ByteBuf *self); - bool_t + public bool_t Equals(ByteBuf *self, Obj *other); i32_t Modified: trunk/c_src/KinoSearch/Util/CharBuf.bp =================================================================== --- trunk/c_src/KinoSearch/Util/CharBuf.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Util/CharBuf.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -163,7 +163,7 @@ /** Test whether the CharBuf matches the passed-in string. */ - bool_t + public bool_t Equals_Str(CharBuf *self, const char *ptr, size_t size); /** Return the number of Unicode code points in the object's string. @@ -199,13 +199,13 @@ void Destroy(CharBuf *self); - bool_t + public bool_t Equals(CharBuf *self, Obj *other); i32_t Hash_Code(CharBuf *self); - incremented CharBuf* + public incremented CharBuf* To_String(CharBuf *self); public void Modified: trunk/c_src/KinoSearch/Util/Num.bp =================================================================== --- trunk/c_src/KinoSearch/Util/Num.bp 2008-09-11 03:57:22 UTC (rev 3868) +++ trunk/c_src/KinoSearch/Util/Num.bp 2008-09-11 05:21:58 UTC (rev 3869) @@ -16,7 +16,7 @@ static Num* new(double value); - bool_t + public bool_t Equals(Num *self, Obj *other); } _______________________________________________ kinosearch-commits mailing list kinosearch-commits [at] rectangular http://www.rectangular.com/mailman/listinfo/kinosearch-commits
|