Mailing List Archive

r3748 - in trunk: boilerplater/lib/Boilerplater boilerplater/lib/Boilerplater/Binding c_src/KSx/Search c_src/KinoSearch c_src/KinoSearch/Analysis c_src/KinoSearch/Doc c_src/KinoSearch/Highlight c_src/KinoSearch/Index c_src/KinoSearch/Posting c_src/KinoSea
Author: creamyg
Date: 2008-08-23 12:03:24 -0700 (Sat, 23 Aug 2008)
New Revision: 3748

Modified:
trunk/boilerplater/lib/Boilerplater/Binding/Perl.pm
trunk/boilerplater/lib/Boilerplater/Function.pm
trunk/boilerplater/lib/Boilerplater/Method.pm
trunk/boilerplater/lib/Boilerplater/Parser.pm
trunk/c_src/KSx/Search/FilterScorer.bp
trunk/c_src/KinoSearch/Analysis/Analyzer.bp
trunk/c_src/KinoSearch/Analysis/LCNormalizer.bp
trunk/c_src/KinoSearch/Analysis/PolyAnalyzer.bp
trunk/c_src/KinoSearch/Analysis/Stemmer.bp
trunk/c_src/KinoSearch/Analysis/Stopalizer.bp
trunk/c_src/KinoSearch/Analysis/Tokenizer.bp
trunk/c_src/KinoSearch/Doc.bp
trunk/c_src/KinoSearch/Doc/HitDoc.bp
trunk/c_src/KinoSearch/Highlight/HeatMap.bp
trunk/c_src/KinoSearch/Highlight/Highlighter.bp
trunk/c_src/KinoSearch/Index/IndexReader.bp
trunk/c_src/KinoSearch/Index/LexCache.bp
trunk/c_src/KinoSearch/Index/Lexicon.bp
trunk/c_src/KinoSearch/Index/MultiLexicon.bp
trunk/c_src/KinoSearch/Index/MultiPostingList.bp
trunk/c_src/KinoSearch/Index/MultiReader.bp
trunk/c_src/KinoSearch/Index/PostingList.bp
trunk/c_src/KinoSearch/Index/SegDataReader.bp
trunk/c_src/KinoSearch/Index/SegDataWriter.bp
trunk/c_src/KinoSearch/Index/SegInfo.bp
trunk/c_src/KinoSearch/Index/SegLexicon.bp
trunk/c_src/KinoSearch/Index/SegPostingList.bp
trunk/c_src/KinoSearch/Index/SegReader.bp
trunk/c_src/KinoSearch/InvIndex.bp
trunk/c_src/KinoSearch/InvIndexer.bp
trunk/c_src/KinoSearch/Obj.bp
trunk/c_src/KinoSearch/Posting.bp
trunk/c_src/KinoSearch/Posting/ScorePosting.bp
trunk/c_src/KinoSearch/QueryParser.bp
trunk/c_src/KinoSearch/Schema.bp
trunk/c_src/KinoSearch/Search/ANDQuery.bp
trunk/c_src/KinoSearch/Search/ANDScorer.bp
trunk/c_src/KinoSearch/Search/Compiler.bp
trunk/c_src/KinoSearch/Search/HitCollector.bp
trunk/c_src/KinoSearch/Search/Hits.bp
trunk/c_src/KinoSearch/Search/LeafQuery.bp
trunk/c_src/KinoSearch/Search/MatchAllQuery.bp
trunk/c_src/KinoSearch/Search/MatchAllScorer.bp
trunk/c_src/KinoSearch/Search/MultiSearcher.bp
trunk/c_src/KinoSearch/Search/NOTQuery.bp
trunk/c_src/KinoSearch/Search/NOTScorer.bp
trunk/c_src/KinoSearch/Search/NoMatchQuery.bp
trunk/c_src/KinoSearch/Search/NoMatchScorer.bp
trunk/c_src/KinoSearch/Search/ORQuery.bp
trunk/c_src/KinoSearch/Search/ORScorer.bp
trunk/c_src/KinoSearch/Search/PhraseQuery.bp
trunk/c_src/KinoSearch/Search/PhraseScorer.bp
trunk/c_src/KinoSearch/Search/PolyQuery.bp
trunk/c_src/KinoSearch/Search/Query.bp
trunk/c_src/KinoSearch/Search/RangeQuery.bp
trunk/c_src/KinoSearch/Search/RangeScorer.bp
trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp
trunk/c_src/KinoSearch/Search/RequiredOptionalScorer.bp
trunk/c_src/KinoSearch/Search/Scorer.bp
trunk/c_src/KinoSearch/Search/Searchable.bp
trunk/c_src/KinoSearch/Search/Similarity.bp
trunk/c_src/KinoSearch/Search/SortSpec.bp
trunk/c_src/KinoSearch/Search/Span.bp
trunk/c_src/KinoSearch/Search/Tally.bp
trunk/c_src/KinoSearch/Search/TermQuery.bp
trunk/c_src/KinoSearch/Search/TermScorer.bp
trunk/c_src/KinoSearch/Searcher.bp
trunk/c_src/KinoSearch/Store/FSFolder.bp
trunk/c_src/KinoSearch/Store/Folder.bp
trunk/c_src/KinoSearch/Store/Lock.bp
trunk/c_src/KinoSearch/Store/LockFactory.bp
trunk/c_src/KinoSearch/Store/RAMFolder.bp
trunk/c_src/KinoSearch/Store/SharedLock.bp
trunk/c_src/KinoSearch/Test/TestQueryParser.bp
trunk/c_src/KinoSearch/Util/BitVector.bp
Log:
Enforce constraint that methods for which Boilerplater generates POD must be
declared as "public". Since the "public" tag is also what triggers code
generation making a method overrideable via Perl, this means that any
auto-documented method can be overrridden. Make some tweaks to Boilerplater
classes (moving "access" member from Method into its parent class Function")
to make the change possible.


Modified: trunk/boilerplater/lib/Boilerplater/Binding/Perl.pm
===================================================================
--- trunk/boilerplater/lib/Boilerplater/Binding/Perl.pm 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/boilerplater/lib/Boilerplater/Binding/Perl.pm 2008-08-23 19:03:24 UTC (rev 3748)
@@ -376,6 +376,9 @@
my $args = "";
my $num_vars = $param_list->num_vars;

+ # Only allow "public" subs to be exposed as part of the public API.
+ confess("$class_name->$sub_name is not public") unless $func->public;
+
# Get documentation, which may be inherited.
my $docucom = $func->get_docu_comment;
if (!$docucom) {

Modified: trunk/boilerplater/lib/Boilerplater/Function.pm
===================================================================
--- trunk/boilerplater/lib/Boilerplater/Function.pm 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/boilerplater/lib/Boilerplater/Function.pm 2008-08-23 19:03:24 UTC (rev 3748)
@@ -17,6 +17,7 @@
docu_comment => undef,
incremented => undef,
parcel => undef,
+ access => undef,
);

sub new {
@@ -42,6 +43,10 @@
confess 'return_type must be a Type object'
unless ref($return_type) && $return_type->isa("Boilerplater::Type");

+ $self->{access} ||= 'parcel';
+ confess "invalid access: '$self->{access}'"
+ unless $self->{access} =~ /^(?:public|private|parcel)$/;
+
# Derive class_cnick if necessary.
if ( !defined $self->{class_cnick} ) {
$self->{class_name} =~ /(\w+)$/
@@ -61,6 +66,10 @@
sub get_docu_comment { shift->{docu_comment} }
sub incremented { shift->{incremented} }

+sub public { defined( $_[0]->{access} ) && $_[0]->{access} eq 'public' }
+sub private { defined( $_[0]->{access} ) && $_[0]->{access} eq 'private' }
+sub parcel { defined( $_[0]->{access} ) && $_[0]->{access} eq 'parcel' }
+
# Indicate true if the function returns a value, or false if the function is
# void.
sub returns_a_value { shift->{return_type}->void ? 0 : 1 }

Modified: trunk/boilerplater/lib/Boilerplater/Method.pm
===================================================================
--- trunk/boilerplater/lib/Boilerplater/Method.pm 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/boilerplater/lib/Boilerplater/Method.pm 2008-08-23 19:03:24 UTC (rev 3748)
@@ -9,15 +9,10 @@
my ( $class, %args ) = @_;
my $macro_name = delete $args{macro_name};
my $abstract = delete $args{abstract};
- my $access = delete $args{access};
my $self = $class->SUPER::new(%args);
confess "macro_name is required" unless $macro_name;
$self->{macro_name} = $macro_name;
$self->{abstract} = $abstract;
- $self->{access} = $access || 'parcel';
- confess "invalid access: '$access'"
- if defined($access)
- && $access !~ /^(?:public|private|parcel)$/;
my $param_list = $self->get_param_list;
my $args = $param_list->get_variables;

@@ -49,9 +44,6 @@
return $self;
}

-sub public { defined( $_[0]->{access} ) && $_[0]->{access} eq 'public' }
-sub private { defined( $_[0]->{access} ) && $_[0]->{access} eq 'private' }
-sub parcel { defined( $_[0]->{access} ) && $_[0]->{access} eq 'parcel' }
sub abstract { shift->{abstract} }
sub get_macro_name { shift->{macro_name} }

@@ -278,7 +270,8 @@
my $nat_func
= $self->{return_type}->is_floating ? 'kino_Native_callback_f'
: $self->{return_type}->is_integer ? 'kino_Native_callback_i'
- : confess( "unrecognized type" . $return_type->to_c );
+ : $return_type eq 'void*' ? 'kino_Native_callback_nat'
+ : confess("unrecognized type: $return_type");
return <<END_CALLBACK_DEF;
$return_type
$full_func_name($params)

Modified: trunk/boilerplater/lib/Boilerplater/Parser.pm
===================================================================
--- trunk/boilerplater/lib/Boilerplater/Parser.pm 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/boilerplater/lib/Boilerplater/Parser.pm 2008-08-23 19:03:24 UTC (rev 3748)
@@ -293,12 +293,12 @@
$macro_name = $item->{declarator};
%extra_args = (
macro_name => $macro_name,
- access => $access,
abstract => $abstract,
);
$micro_name = lc($macro_name);
}
return $class->new(
+ access => $access,
parcel => $parcel_name,
docu_comment => $docu_com,
class_name => $args->{class},

Modified: trunk/c_src/KSx/Search/FilterScorer.bp
===================================================================
--- trunk/c_src/KSx/Search/FilterScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KSx/Search/FilterScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -21,16 +21,16 @@
void
Destroy(FilterScorer *self);

- u32_t
+ public u32_t
Next(FilterScorer* self);

- u32_t
+ public u32_t
Skip_To(FilterScorer* self, u32_t target);

- Tally*
+ public Tally*
Tally(FilterScorer* self);

- u32_t
+ public u32_t
Get_Doc_Num(FilterScorer* self);
}


Modified: trunk/c_src/KinoSearch/Analysis/Analyzer.bp
===================================================================
--- trunk/c_src/KinoSearch/Analysis/Analyzer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Analysis/Analyzer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -10,7 +10,7 @@
*/
class KinoSearch::Analysis::Analyzer extends KinoSearch::Obj {

- static Analyzer*
+ public static Analyzer*
init(Analyzer *self);

/** Take a single L<Inversion|KinoSearch::Analysis::Inversion> as input

Modified: trunk/c_src/KinoSearch/Analysis/LCNormalizer.bp
===================================================================
--- trunk/c_src/KinoSearch/Analysis/LCNormalizer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Analysis/LCNormalizer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -16,7 +16,7 @@

/** Constructor. Takes no arguments.
*/
- static LCNormalizer*
+ public static LCNormalizer*
init(LCNormalizer *self);

public incremented Inversion*

Modified: trunk/c_src/KinoSearch/Analysis/PolyAnalyzer.bp
===================================================================
--- trunk/c_src/KinoSearch/Analysis/PolyAnalyzer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Analysis/PolyAnalyzer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -42,7 +42,7 @@
* stoplist). In general, the sequence should be: normalize, tokenize,
* stopalize, stem.
*/
- static PolyAnalyzer*
+ public static PolyAnalyzer*
init(PolyAnalyzer *self, const CharBuf *language = NULL,
VArray *analyzers = NULL);


Modified: trunk/c_src/KinoSearch/Analysis/Stemmer.bp
===================================================================
--- trunk/c_src/KinoSearch/Analysis/Stemmer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Analysis/Stemmer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -20,7 +20,7 @@
* @param language A two-letter ISO code identifying a language supported
* by Snowball.
*/
- static Stemmer*
+ public static Stemmer*
init(Stemmer *self, const CharBuf *language);

public incremented Inversion*

Modified: trunk/c_src/KinoSearch/Analysis/Stopalizer.bp
===================================================================
--- trunk/c_src/KinoSearch/Analysis/Stopalizer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Analysis/Stopalizer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,7 +27,7 @@
* @param stoplist A hash with stopwords as the keys.
* @param language The ISO code for a supported language.
*/
- static Stopalizer*
+ public static Stopalizer*
init(Stopalizer *self, const CharBuf *language = NULL,
Hash *stoplist = NULL);


Modified: trunk/c_src/KinoSearch/Analysis/Tokenizer.bp
===================================================================
--- trunk/c_src/KinoSearch/Analysis/Tokenizer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Analysis/Tokenizer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -46,7 +46,7 @@
* <code>\w+(?:[\x{2019}']\w+)*</code>, which matches "it's" as well as
* "it" and "O'Henry's" as well as "Henry".
*/
- static Tokenizer*
+ public static Tokenizer*
init(Tokenizer *self, const CharBuf *pattern = NULL);

public incremented Inversion*

Modified: trunk/c_src/KinoSearch/Doc/HitDoc.bp
===================================================================
--- trunk/c_src/KinoSearch/Doc/HitDoc.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Doc/HitDoc.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -28,22 +28,22 @@

/** Throw an error (boost is invalid).
*/
- void
+ public void
Set_Boost(HitDoc *self, float boost);

/** Throw an error (boost is invalid).
*/
- float
+ public float
Get_Boost(HitDoc *self);

/** Set score attribute.
*/
- void
+ public void
Set_Score(HitDoc *self, float score);

/** Get score attribute.
*/
- float
+ public float
Get_Score(HitDoc *self);

public void

Modified: trunk/c_src/KinoSearch/Doc.bp
===================================================================
--- trunk/c_src/KinoSearch/Doc.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Doc.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -21,7 +21,7 @@
* @param boost A scoring multiplier. Default of 1.0.
* @param doc_num Internal KinoSearch document number. Default of 0.
*/
- static Doc*
+ public static Doc*
init(Doc *self, void *fields = NULL, u32_t doc_num = 0, float boost = 1.0 );

/** Set boost attribute.
@@ -30,12 +30,12 @@
*
* @param boost A floating point scoring multiplier.
*/
- void
+ public void
Set_Boost(Doc *self, float boost);

/** Get boost attribute.
*/
- float
+ public float
Get_Boost(Doc *self);

void
@@ -51,7 +51,7 @@

/** Return the Doc's backing fields hash.
*/
- void*
+ public void*
Get_Fields(Doc *self);

/** Retrieve the field's value, or NULL if the field is not present. If

Modified: trunk/c_src/KinoSearch/Highlight/HeatMap.bp
===================================================================
--- trunk/c_src/KinoSearch/Highlight/HeatMap.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Highlight/HeatMap.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -20,7 +20,7 @@
* @param window The greatest distance between which heat points may
* reinforce each other.
*/
- static HeatMap*
+ public static HeatMap*
init(HeatMap *self, VArray *spans, u32_t window = 133);

/** Reduce/slice overlapping spans. Say we have two spans:

Modified: trunk/c_src/KinoSearch/Highlight/Highlighter.bp
===================================================================
--- trunk/c_src/KinoSearch/Highlight/Highlighter.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Highlight/Highlighter.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -33,7 +33,7 @@
* L<FieldSpec|KinoSearch::FieldSpec>).
* @param excerpt_length Maximum length of the excerpt, in characters.
*/
- static Highlighter*
+ public static Highlighter*
init(Highlighter *self, Searchable *searchable, Obj *query,
const CharBuf *field, u32_t excerpt_length = 200);

@@ -77,48 +77,48 @@

/** Setter. The default value is "<strong>".
*/
- void
+ public void
Set_Pre_Tag(Highlighter *self, const CharBuf *pre_tag);

/** Setter. The default value is "</strong>".
*/
- void
+ public void
Set_Post_Tag(Highlighter *self, const CharBuf *post_tag);

/** Accessor.
*/
- CharBuf*
+ public CharBuf*
Get_Pre_Tag(Highlighter *self);

/** Accessor.
*/
- CharBuf*
+ public CharBuf*
Get_Post_Tag(Highlighter *self);

/** Accessor.
*/
- CharBuf*
+ public CharBuf*
Get_Field(Highlighter *self);

/** Accessor.
*/
- u32_t
+ public u32_t
Get_Excerpt_Length(Highlighter *self);

/** Accessor.
*/
- Searchable*
+ public Searchable*
Get_Searchable(Highlighter *self);

/** Accessor.
*/
- Query*
+ public Query*
Get_Query(Highlighter *self);

/** Accessor for the KinoSearch::Search::Compiler object derived from
* <code>query</code> and <code>searchable</code>.
*/
- Compiler*
+ public Compiler*
Get_Compiler(Highlighter *self);

/* Decide based on heat map the best fragment of field to concentrate on.

Modified: trunk/c_src/KinoSearch/Index/IndexReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/IndexReader.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/IndexReader.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -47,7 +47,7 @@
* @param lock_factory A L<KinoSearch::Store::LockFactory>. Read-locking
* is off by default; supplying this argument turns it on.
*/
- static IndexReader*
+ public static IndexReader*
init(IndexReader *self, InvIndex *invindex, Snapshot *snapshot = NULL,
LockFactory *lock_factory = NULL);

@@ -63,13 +63,13 @@
* been marked as deleted but not yet purged from the index are included
* in this count.
*/
- abstract u32_t
+ public abstract u32_t
Max_Docs(IndexReader *self);

/** Return the number documents available to the reader, subtracting
* any that are marked as deleted.
*/
- abstract u32_t
+ public abstract u32_t
Num_Docs(IndexReader *self);

/** Return the number of documents in which the term appears.
@@ -107,7 +107,7 @@
* @param field A field name.
* @param term If supplied, the Lexicon will be pre-located using Seek().
*/
- abstract incremented Lexicon*
+ public abstract incremented Lexicon*
Lexicon(IndexReader *self, const CharBuf *field = NULL, Obj *term = NULL);

/** Returns a PostingList.
@@ -119,7 +119,7 @@
* @param term If supplied, the PostingList will be pre-located using
* Seek().
*/
- abstract incremented PostingList*
+ public abstract incremented PostingList*
Posting_List(IndexReader *self, const CharBuf *field = NULL,
Obj *term = NULL);
/** Retrieve the Doc for the given doc num.

Modified: trunk/c_src/KinoSearch/Index/LexCache.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/LexCache.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/LexCache.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -21,13 +21,13 @@
static LexCache*
init(LexCache *self, CharBuf *field, VArray *terms, i32_t index_interval);

- void
+ public void
Seek(LexCache *self, Obj *target = NULL);

i32_t
Get_Term_Num(LexCache *self);

- Obj*
+ public Obj*
Get_Term(LexCache *self);

void

Modified: trunk/c_src/KinoSearch/Index/Lexicon.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/Lexicon.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/Lexicon.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -19,27 +19,27 @@

CharBuf *field;

- static Lexicon*
+ public static Lexicon*
init(Lexicon *self);

/** Seek the Lexicon to the first iterator state which is greater than or
* equal to <target>target</target>. If <code>target</code> is NULL,
* reset the iterator.
*/
- abstract void
+ public abstract void
Seek(Lexicon *self, Obj *target = NULL);

/** Proceed to the next term.
*
* @return true until the iterator is exhausted, then false.
*/
- abstract bool_t
+ public abstract bool_t
Next(Lexicon *self);

/** Reset the iterator. Next() must be called to proceed to the first
* element.
*/
- abstract void
+ public abstract void
Reset(Lexicon *self);

/** Return the number of terms in the Lexicon.
@@ -57,7 +57,7 @@
/** Return the current term, or NULL if the iterator is not in a valid
* state.
*/
- abstract Obj*
+ public abstract Obj*
Get_Term(Lexicon *self);

/** Build an I32Array mapping from doc number to term number.

Modified: trunk/c_src/KinoSearch/Index/MultiLexicon.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/MultiLexicon.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/MultiLexicon.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,13 +27,13 @@

/* Note: Seek may only be called if the object has a LexCache.
*/
- void
+ public void
Seek(MultiLexicon *self, Obj *target = NULL);

- bool_t
+ public bool_t
Next(MultiLexicon *self);

- void
+ public void
Reset(MultiLexicon *self);

i32_t
@@ -42,7 +42,7 @@
i32_t
Get_Term_Num(MultiLexicon *self);

- Obj*
+ public Obj*
Get_Term(MultiLexicon *self);

incremented I32Array*

Modified: trunk/c_src/KinoSearch/Index/MultiPostingList.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/MultiPostingList.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/MultiPostingList.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,16 +27,16 @@
Posting*
Get_Posting(MultiPostingList *self);

- u32_t
+ public u32_t
Get_Doc_Freq(MultiPostingList *self);

- u32_t
+ public u32_t
Get_Doc_Num(MultiPostingList *self);

- u32_t
+ public u32_t
Next(MultiPostingList *self);

- void
+ public void
Seek(MultiPostingList *self, Obj *target);

u32_t

Modified: trunk/c_src/KinoSearch/Index/MultiReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/MultiReader.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/MultiReader.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -23,10 +23,10 @@
u32_t
Sub_Reader_Tick(MultiReader *self, u32_t doc_num);

- u32_t
+ public u32_t
Max_Docs(MultiReader *self);

- u32_t
+ public u32_t
Num_Docs(MultiReader *self);

u32_t
@@ -44,10 +44,10 @@
void
Write_Deletions(MultiReader *self);

- incremented Lexicon*
+ public incremented Lexicon*
Lexicon(MultiReader *self, const CharBuf *field = NULL, Obj *term = NULL);

- incremented PostingList*
+ public incremented PostingList*
Posting_List(MultiReader *self, const CharBuf *field = NULL,
Obj *term = NULL);


Modified: trunk/c_src/KinoSearch/Index/PostingList.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/PostingList.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/PostingList.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -9,7 +9,7 @@
class KinoSearch::Index::PostingList cnick PList
extends KinoSearch::Obj {

- static PostingList*
+ public static PostingList*
init(PostingList *self);

/** Return the iterator's current Posting. Should not be called before
@@ -22,13 +22,13 @@
* number will include any documents which have been marked as deleted but
* not yet purged.)
*/
- abstract u32_t
+ public abstract u32_t
Get_Doc_Freq(PostingList *self);

/** Return the iterator's current document number. Should not be called
* before the iterator is initialized or after it empties.
*/
- abstract u32_t
+ public abstract u32_t
Get_Doc_Num(PostingList *self);

/** Prepare the PostingList object to iterate over matches for documents that
@@ -36,7 +36,7 @@
*
* @param target The term to match. If NULL, the iterator will be empty.
*/
- abstract void
+ public abstract void
Seek(PostingList *self, Obj *target = NULL);

/** Occasionally optimized version of PList_Seek, designed to speed
@@ -48,7 +48,7 @@
/** Advance the PostingList object to the next document. Return a positive
* document number, or 0 once the iterator is exhausted.
*/
- abstract u32_t
+ public abstract u32_t
Next(PostingList *self);

/** Skip to the first doc number greater than or equal to [target]. Return

Modified: trunk/c_src/KinoSearch/Index/SegDataReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegDataReader.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/SegDataReader.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -10,7 +10,7 @@

/* Constructors.
*/
- static SegDataReader*
+ public static SegDataReader*
init(SegDataReader *self, InvIndex *invindex, SegInfo *seg_info);

InvIndex*

Modified: trunk/c_src/KinoSearch/Index/SegDataWriter.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegDataWriter.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/SegDataWriter.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -64,7 +64,7 @@

/* Constructor.
*/
- static SegDataWriter*
+ public static SegDataWriter*
init(SegDataWriter *self, InvIndex *invindex, SegInfo *seg_info);

/* Add a document to the segment.

Modified: trunk/c_src/KinoSearch/Index/SegInfo.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegInfo.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/SegInfo.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,7 +27,7 @@
static incremented SegInfo*
new(const CharBuf *seg_name, Hash *fspecs = NULL, Hash *metadata = NULL);

- static SegInfo*
+ public static SegInfo*
init(SegInfo *self, const CharBuf *seg_name, Hash *fspecs = NULL,
Hash *metadata = NULL);


Modified: trunk/c_src/KinoSearch/Index/SegLexicon.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegLexicon.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/SegLexicon.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -45,19 +45,19 @@
void
Destroy(SegLexicon *self);

- void
+ public void
Seek(SegLexicon*self, Obj *target = NULL);

- void
+ public void
Reset(SegLexicon* self);

i32_t
Get_Term_Num(SegLexicon *self);

- Obj*
+ public Obj*
Get_Term(SegLexicon *self);

- bool_t
+ public bool_t
Next(SegLexicon *self);

i32_t

Modified: trunk/c_src/KinoSearch/Index/SegPostingList.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegPostingList.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/SegPostingList.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -39,16 +39,16 @@
void
Destroy(SegPostingList *self);

- u32_t
+ public u32_t
Get_Doc_Freq(SegPostingList *self);

- u32_t
+ public u32_t
Get_Doc_Num(SegPostingList *self);

Posting*
Get_Posting(SegPostingList *self);

- u32_t
+ public u32_t
Next(SegPostingList *self);

/*
@@ -56,7 +56,7 @@
Skip_To(SegPostingList *self, u32_t target);
*/

- void
+ public void
Seek(SegPostingList *self, Obj *target);

void

Modified: trunk/c_src/KinoSearch/Index/SegReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegReader.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Index/SegReader.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -25,10 +25,10 @@
SegInfo*
Get_Seg_Info(SegReader *self);

- u32_t
+ public u32_t
Max_Docs(SegReader *self);

- u32_t
+ public u32_t
Num_Docs(SegReader *self);

u32_t
@@ -46,10 +46,10 @@
void
Write_Deletions(SegReader *self);

- incremented Lexicon*
+ public incremented Lexicon*
Lexicon(SegReader *self, const CharBuf *field = NULL, Obj *term = NULL);

- incremented PostingList*
+ public incremented PostingList*
Posting_List(SegReader *self, const CharBuf *field = NULL,
Obj *term = NULL);


Modified: trunk/c_src/KinoSearch/InvIndex.bp
===================================================================
--- trunk/c_src/KinoSearch/InvIndex.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/InvIndex.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -28,7 +28,7 @@
* @param schema A KinoSearch::Schema.
* @param folder Either a KinoSearch::Store::Folder or a string filepath.
*/
- static InvIndex*
+ public static InvIndex*
init(InvIndex *self, Schema *schema, Obj *folder);

/** Open an invindex for either reading or updating. Fails if the
@@ -37,7 +37,7 @@
* @param schema A KinoSearch::Schema.
* @param folder Either a KinoSearch::Store::Folder or a string filepath.
*/
- static InvIndex*
+ public static InvIndex*
read(InvIndex *self, Schema *schema, Obj *folder);

/** Open an invindex for reading/writing. Initializes a new invindex if
@@ -46,7 +46,7 @@
* @param schema A KinoSearch::Schema.
* @param folder Either a KinoSearch::Store::Folder or a string filepath.
*/
- static InvIndex*
+ public static InvIndex*
open(InvIndex *self, Schema *schema, Obj *folder);

/** Initialize a new invindex, creating a directory on the file system if
@@ -56,17 +56,17 @@
* @param schema A KinoSearch::Schema.
* @param folder Either a KinoSearch::Store::Folder or a string filepath.
*/
- static InvIndex*
+ public static InvIndex*
clobber(InvIndex *self, Schema *schema, Obj *folder);

/** Accessor.
*/
- Schema*
+ public Schema*
Get_Schema(InvIndex *self);

/** Accessor.
*/
- Folder*
+ public Folder*
Get_Folder(InvIndex *self);

void Destroy(InvIndex *self);

Modified: trunk/c_src/KinoSearch/InvIndexer.bp
===================================================================
--- trunk/c_src/KinoSearch/InvIndexer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/InvIndexer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -31,7 +31,7 @@
* @param invindex An object which isa L<KinoSearch::InvIndex>.
* @param lock_factory An object which isa L<KinoSearch::StoreLockFactory>.
*/
- static InvIndexer*
+ public static InvIndexer*
init(InvIndexer *self, InvIndex *invindex,
LockFactory *lock_factory = NULL);

@@ -39,13 +39,13 @@
*
* @param doc A KinoSearch::Doc object.
*/
- void
+ public void
Add_Doc(InvIndexer *self, Doc *doc);

/** Absorb an existing invindex into this one. The two invindexes must
* have matching Schemas.
*/
- void
+ public void
Add_InvIndex(InvIndexer *self, InvIndex *invindex);

/** Mark documents which contain the supplied term as deleted, so that
@@ -58,7 +58,7 @@
* <code>field</code> is associated with an analyzer, <code>term</code>
* will be processed automatically (so don't pre-process it yourself).
*/
- void
+ public void
Delete_By_Term(InvIndexer *self, CharBuf *field, Obj *term);

/** Finish processing any changes made to the invindex and commit. Until
@@ -72,7 +72,7 @@
* compact form, a process which may take a while -- but which will yield
* the fastest queries at search time. The default value is false.
*/
- void
+ public void
Finish(InvIndexer *self, bool_t optimize = false);

/** Return an array of SegReaders representing either sparsely populated

Modified: trunk/c_src/KinoSearch/Obj.bp
===================================================================
--- trunk/c_src/KinoSearch/Obj.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Obj.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -10,7 +10,7 @@

/** Abstract initializer.
*/
- static Obj*
+ public static Obj*
init(Obj* self);

/** Generic constructor which allows subclassing and does not require a

Modified: trunk/c_src/KinoSearch/Posting/ScorePosting.bp
===================================================================
--- trunk/c_src/KinoSearch/Posting/ScorePosting.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Posting/ScorePosting.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -56,7 +56,7 @@
init(ScorePostingScorer *self, Similarity *sim, PostingList *plist,
Compiler *compiler);

- Tally*
+ public Tally*
Tally(ScorePostingScorer* self);

void

Modified: trunk/c_src/KinoSearch/Posting.bp
===================================================================
--- trunk/c_src/KinoSearch/Posting.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Posting.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -14,7 +14,7 @@

u32_t doc_num; /* document number */

- static Posting*
+ public static Posting*
init(Posting *self);

/** Create a RawPosting object, suitable for index-time sorting.

Modified: trunk/c_src/KinoSearch/QueryParser.bp
===================================================================
--- trunk/c_src/KinoSearch/QueryParser.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/QueryParser.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -54,7 +54,7 @@
* terms. If you want only documents which match all of the query terms,
* set this to 'AND'.
*/
- static QueryParser*
+ public static QueryParser*
init(QueryParser *self, Schema *schema, Analyzer *analyzer = NULL,
const CharBuf *default_boolop = NULL, VArray *fields = NULL);


Modified: trunk/c_src/KinoSearch/Schema.bp
===================================================================
--- trunk/c_src/KinoSearch/Schema.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Schema.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -14,7 +14,7 @@
i32_t index_interval;
i32_t skip_interval;

- static Schema*
+ public static Schema*
init(Schema *self);

public abstract incremented Analyzer*

Modified: trunk/c_src/KinoSearch/Search/ANDQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/ANDQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/ANDQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -13,10 +13,10 @@

/** Constructor. Takes no parameters.
*/
- static ANDQuery*
+ public static ANDQuery*
init(ANDQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(ANDQuery *self, Searchable *searchable, float boost);

incremented CharBuf*

Modified: trunk/c_src/KinoSearch/Search/ANDScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/ANDScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/ANDScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -28,16 +28,16 @@
void
Add_Subscorer(ANDScorer* self, Scorer* subscorer);

- u32_t
+ public u32_t
Next(ANDScorer *self);

- u32_t
+ public u32_t
Skip_To(ANDScorer *self, u32_t target);

- Tally*
+ public Tally*
Tally(ANDScorer *self);

- u32_t
+ public u32_t
Get_Doc_Num(ANDScorer *self);

u32_t

Modified: trunk/c_src/KinoSearch/Search/Compiler.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Compiler.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Compiler.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -53,7 +53,7 @@
* @param boost An arbitrary scoring multiplier. Defaults to the boost of
* the parent Query.
*/
- static Compiler*
+ public static Compiler*
init(Compiler *self, Query *parent, Searchable *searchable,
Similarity *similarity = NULL, float boost);


Modified: trunk/c_src/KinoSearch/Search/HitCollector.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/HitCollector.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/HitCollector.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -11,7 +11,7 @@

/** Abstract constructor. Takes no arguments.
*/
- static HitCollector*
+ public static HitCollector*
init(HitCollector *self);

/** Do something with a doc num and a Tally. (For instance,
@@ -39,7 +39,7 @@
/**
* @param bit_vector A KinoSearch::Util::BitVector.
*/
- static BitCollector*
+ public static BitCollector*
init(BitCollector *self, BitVector *bit_vector);

void

Modified: trunk/c_src/KinoSearch/Search/Hits.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Hits.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Hits.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -20,7 +20,7 @@
/** Return the next hit as a HitDoc object, or NULL when the iterator is
* exhausted.
*/
- incremented HitDoc*
+ public incremented HitDoc*
Fetch_Hit(Hits *self);

/** Return the total number of documents which matched the Query used to
@@ -28,7 +28,7 @@
* matches, not just the number of matches represented by the Hits
* iterator.
*/
- u32_t
+ public u32_t
Total_Hits(Hits *self);

void

Modified: trunk/c_src/KinoSearch/Search/LeafQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/LeafQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/LeafQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -22,17 +22,17 @@
* @param field Optional field name.
* @param text Raw query text.
*/
- static LeafQuery*
+ public static LeafQuery*
init(LeafQuery *self, const CharBuf *field = NULL, const CharBuf *text);

/** Accessor for object's <code>field</code> attribute.
*/
- CharBuf*
+ public CharBuf*
Get_Field(LeafQuery *self);

/** Accessor for object's <code>text</code> attribute.
*/
- CharBuf*
+ public CharBuf*
Get_Text(LeafQuery *self);

bool_t
@@ -49,7 +49,7 @@

/** Throws an error.
*/
- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(LeafQuery *self, Searchable *searchable, float boost);

void

Modified: trunk/c_src/KinoSearch/Search/MatchAllQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/MatchAllQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/MatchAllQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -15,7 +15,7 @@

/** Constructor. Takes no arguments.
*/
- static MatchAllQuery*
+ public static MatchAllQuery*
init(MatchAllQuery *self);

bool_t
@@ -24,7 +24,7 @@
incremented CharBuf*
To_String(MatchAllQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(MatchAllQuery *self, Searchable *searchable, float boost);
}


Modified: trunk/c_src/KinoSearch/Search/MatchAllScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/MatchAllScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/MatchAllScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -20,16 +20,16 @@
void
Destroy(MatchAllScorer *self);

- u32_t
+ public u32_t
Next(MatchAllScorer* self);

- u32_t
+ public u32_t
Skip_To(MatchAllScorer* self, u32_t target);

- Tally*
+ public Tally*
Tally(MatchAllScorer* self);

- u32_t
+ public u32_t
Get_Doc_Num(MatchAllScorer* self);
}


Modified: trunk/c_src/KinoSearch/Search/MultiSearcher.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/MultiSearcher.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/MultiSearcher.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -28,19 +28,19 @@
* @param schema A Schema.
* @param searchables An array of Searchables.
*/
- static MultiSearcher*
+ public static MultiSearcher*
init(MultiSearcher *self, Schema *schema, VArray *searchables);

void
Destroy(MultiSearcher *self);

- u32_t
+ public u32_t
Max_Docs(MultiSearcher *self);

- u32_t
+ public u32_t
Doc_Freq(MultiSearcher *self, const CharBuf *field, Obj *term);

- void
+ public void
Collect(MultiSearcher *self, Query *query, HitCollector *collector);

incremented TopDocs*

Modified: trunk/c_src/KinoSearch/Search/NOTQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/NOTQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/NOTQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -20,26 +20,26 @@
/**
* @param negated_query The Query whose result set should be inverted.
*/
- static NOTQuery*
+ public static NOTQuery*
init(NOTQuery *self, Query *negated_query);

/** Throws an error.
*/
- void
+ public void
Add_Child(NOTQuery *self, Query *query);

/** Accessor for the object's negated query. */
- Query*
+ public Query*
Get_Negated_Query(NOTQuery *self);

/** Setter for the object's negated query. */
- void
+ public void
Set_Negated_Query(NOTQuery *self, Query *negated_query);

incremented CharBuf*
To_String(NOTQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(NOTQuery *self, Searchable *searchable, float boost);
}


Modified: trunk/c_src/KinoSearch/Search/NOTScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/NOTScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/NOTScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -21,16 +21,16 @@
void
Destroy(NOTScorer *self);

- u32_t
+ public u32_t
Next(NOTScorer *self);

- u32_t
+ public u32_t
Skip_To(NOTScorer *self, u32_t target);

- Tally*
+ public Tally*
Tally(NOTScorer *self);

- u32_t
+ public u32_t
Get_Doc_Num(NOTScorer *self);

u32_t

Modified: trunk/c_src/KinoSearch/Search/NoMatchQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/NoMatchQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/NoMatchQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -13,7 +13,7 @@

/** Constructor. Takes no arguments.
*/
- static NoMatchQuery*
+ public static NoMatchQuery*
init(NoMatchQuery *self);

bool_t
@@ -22,7 +22,7 @@
incremented CharBuf*
To_String(NoMatchQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(NoMatchQuery *self, Searchable *searchable, float boost);
}


Modified: trunk/c_src/KinoSearch/Search/NoMatchScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/NoMatchScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/NoMatchScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -8,10 +8,10 @@
static NoMatchScorer*
init(NoMatchScorer *self);

- u32_t
+ public u32_t
Next(NoMatchScorer* self);

- u32_t
+ public u32_t
Skip_To(NoMatchScorer* self, u32_t target);
}


Modified: trunk/c_src/KinoSearch/Search/ORQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/ORQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/ORQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -14,10 +14,10 @@

/** Constructor. Takes no parameters.
*/
- static ORQuery*
+ public static ORQuery*
init(ORQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(ORQuery *self, Searchable *searchable, float boost);

incremented CharBuf*

Modified: trunk/c_src/KinoSearch/Search/ORScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/ORScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/ORScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,16 +27,16 @@
void
Destroy(ORScorer *self);

- u32_t
+ public u32_t
Next(ORScorer *self);

- u32_t
+ public u32_t
Skip_To(ORScorer *self, u32_t target);

- Tally*
+ public Tally*
Tally(ORScorer *self);

- u32_t
+ public u32_t
Get_Doc_Num(ORScorer *self);

u32_t

Modified: trunk/c_src/KinoSearch/Search/PhraseQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/PhraseQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/PhraseQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -21,20 +21,20 @@
* @param field The field that the phrase must occur in.
* @param terms The ordered array of terms that must match.
*/
- static PhraseQuery*
+ public static PhraseQuery*
init(PhraseQuery *self, const CharBuf *field, VArray *terms);

/** Accessor for object's field attribute.
*/
- CharBuf*
+ public CharBuf*
Get_Field(PhraseQuery *self);

/** Accessor for object's array of terms.
*/
- VArray*
+ public VArray*
Get_Terms(PhraseQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(PhraseQuery *self, Searchable *searchable, float boost);

bool_t

Modified: trunk/c_src/KinoSearch/Search/PhraseScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/PhraseScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/PhraseScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,16 +27,16 @@
void
Destroy(PhraseScorer *self);

- u32_t
+ public u32_t
Next(PhraseScorer *self);

- u32_t
+ public u32_t
Skip_To(PhraseScorer *self, u32_t target);

- u32_t
+ public u32_t
Get_Doc_Num(PhraseScorer *self);

- Tally*
+ public Tally*
Tally(PhraseScorer *self);

/** Calculate how often the phrase occurs in the current document.

Modified: trunk/c_src/KinoSearch/Search/PolyQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/PolyQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/PolyQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -10,12 +10,12 @@

VArray *children;

- static PolyQuery*
+ public static PolyQuery*
init(PolyQuery *self);

/** Add a child Query node.
*/
- void
+ public void
Add_Child(PolyQuery *self, Query *query);

void

Modified: trunk/c_src/KinoSearch/Search/Query.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Query.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Query.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -28,7 +28,7 @@
* subclasses which do not contribute to document scores such as NOTQuery
* and MatchAllQuery default to 0.0 instead.
*/
- static Query*
+ public static Query*
init(Query *self, float boost = 1.0);

/** Abstract factory method returning a Compiler derived from this Query.
@@ -36,17 +36,17 @@
* @param searchable A Searchable.
* @param boost A scoring multiplier. Defaults to the Query's own boost.
*/
- abstract incremented Compiler*
+ public abstract incremented Compiler*
Make_Compiler(Query *self, Searchable *searchable, float boost);

/** Set the Query's boost.
*/
- void
+ public void
Set_Boost(Query *self, float boost);

/** Get the Query's boost.
*/
- float
+ public float
Get_Boost(Query *self);

public void

Modified: trunk/c_src/KinoSearch/Search/RangeQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/RangeQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/RangeQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -35,7 +35,7 @@
* @param include_upper Indicates whether docs which match
* <code>upper_term</code> should be included in the results.
*/
- static RangeQuery*
+ public static RangeQuery*
init(RangeQuery *self, const CharBuf *field,
Obj *lower_term = NULL, Obj *upper_term = NULL,
bool_t include_lower = true, bool_t include_upper = true);
@@ -46,7 +46,7 @@
incremented CharBuf*
To_String(RangeQuery *self);

- incremented RangeCompiler*
+ public incremented RangeCompiler*
Make_Compiler(RangeQuery *self, Searchable *searchable, float boost);

public void

Modified: trunk/c_src/KinoSearch/Search/RangeScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/RangeScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/RangeScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -16,16 +16,16 @@
init(RangeScorer *self, i32_t lower_bound, i32_t upper_bound,
I32Array *sort_cache);

- u32_t
+ public u32_t
Next(RangeScorer *self);

- u32_t
+ public u32_t
Skip_To(RangeScorer *self, u32_t target);

- Tally*
+ public Tally*
Tally(RangeScorer* self);

- u32_t
+ public u32_t
Get_Doc_Num(RangeScorer* self);

void

Modified: trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/RequiredOptionalQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -17,35 +17,35 @@
* @param required_query Query must must match.
* @param optional_query Query which should match.
*/
- static RequiredOptionalQuery*
+ public static RequiredOptionalQuery*
init(RequiredOptionalQuery *self, Query *required_query,
Query *optional_query);

/** Throws an error.
*/
- void
+ public void
Add_Child(RequiredOptionalQuery *self, Query *query);

/** Getter for the required Query. */
- Query*
+ public Query*
Get_Required_Query(RequiredOptionalQuery *self);

/** Setter for the required Query. */
- void
+ public void
Set_Required_Query(RequiredOptionalQuery *self, Query *required_query);

/** Getter for the optional Query. */
- Query*
+ public Query*
Get_Optional_Query(RequiredOptionalQuery *self);

/** Setter for the optional Query. */
- void
+ public void
Set_Optional_Query(RequiredOptionalQuery *self, Query *optional_query);

incremented CharBuf*
To_String(RequiredOptionalQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(RequiredOptionalQuery *self, Searchable *searchable,
float boost);
}

Modified: trunk/c_src/KinoSearch/Search/RequiredOptionalScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/RequiredOptionalScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/RequiredOptionalScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -22,16 +22,16 @@
void
Destroy(RequiredOptionalScorer *self);

- u32_t
+ public u32_t
Next(RequiredOptionalScorer *self);

- u32_t
+ public u32_t
Skip_To(RequiredOptionalScorer *self, u32_t target);

- Tally*
+ public Tally*
Tally(RequiredOptionalScorer *self);

- u32_t
+ public u32_t
Get_Doc_Num(RequiredOptionalScorer *self);

u32_t

Modified: trunk/c_src/KinoSearch/Search/Scorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Scorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Scorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -14,7 +14,7 @@
*
* @param similarity A Similarity.
*/
- static Scorer*
+ public static Scorer*
init(Scorer *self, Similarity *similarity);

void
@@ -25,21 +25,21 @@
* @return either a positive document number, or 0 (an invalid document
* number) when there are no more documents which match.
*/
- abstract u32_t
+ public abstract u32_t
Next(Scorer *self);

/** Return the scorer's current document number. Valid only after a
* successful call to Next() or Skip_To() and must not be called
* otherwise.
*/
- abstract u32_t
+ public abstract u32_t
Get_Doc_Num(Scorer *self);

/** Return a Tally containing scoring information. Valid only after a
* successful call to Next() or Skip_To() and must not be called
* otherwise.
*/
- abstract Tally*
+ public abstract Tally*
Tally(Scorer *self);

/** Skip to the first document number equal to or greater than the target.
@@ -49,7 +49,7 @@
* @return either a positive document number, or 0 (an invalid document
* number) when there are no more documents which match.
*/
- u32_t
+ public u32_t
Skip_To(Scorer *self, u32_t target);

/** Collect hits bracketed by <code>start</code>, inclusive, and

Modified: trunk/c_src/KinoSearch/Search/Searchable.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Searchable.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Searchable.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -15,7 +15,7 @@
*
* @param schema A KinoSearch::Schema.
*/
- static Searchable*
+ public static Searchable*
init(Searchable *self, Schema *schema);

void
@@ -25,7 +25,7 @@
* the Searchable, which is also the largest possible doc number. Deleted
* docs are included in this count.
*/
- abstract u32_t
+ public abstract u32_t
Max_Docs(Searchable *self);

/** Return the number of documents which contain the term in the given
@@ -34,14 +34,14 @@
* @param field Field name.
* @param term The term to look up.
*/
- abstract u32_t
+ public abstract u32_t
Doc_Freq(Searchable *self, const CharBuf *field, Obj *term);

/** If the supplied object is a Query, return it; if it's a query string,
* create a QueryParser and parse it to produce a query against all
* indexed fields.
*/
- incremented Query*
+ public incremented Query*
Glean_Query(Searchable *self, Obj *query = NULL);

/** Return a Hits object containing the top results.
@@ -56,7 +56,7 @@
* @param sort_spec A L<KinoSearch::Search::SortSpec>, which will affect
* how results are ranked and returned.
*/
- incremented Hits*
+ public incremented Hits*
Search(Searchable *self, Obj *query, u32_t offset = 0,
u32_t num_wanted = 10, SortSpec *sort_spec = NULL);

@@ -66,7 +66,7 @@
* @param query A Query.
* @param collector A HitCollector.
*/
- abstract void
+ public abstract void
Collect(Searchable *self, Query *query, HitCollector *collector);

/** Return a TopDocs object with up to num_wanted hits.
@@ -89,7 +89,7 @@

/** Accessor for the object's <code>schema</code> member.
*/
- Schema*
+ public Schema*
Get_Schema(Searchable *self);

/** Release external resources.

Modified: trunk/c_src/KinoSearch/Search/Similarity.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Similarity.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Similarity.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -27,7 +27,7 @@

/** Constructor. Takes no arguments.
*/
- static Similarity*
+ public static Similarity*
init(Similarity *self);

/** Return a score factor based on the frequency of a term in a given

Modified: trunk/c_src/KinoSearch/Search/SortSpec.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/SortSpec.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/SortSpec.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -23,7 +23,7 @@

/** Constructor. Takes no arguments.
*/
- static SortSpec*
+ public static SortSpec*
init(SortSpec *self);

public incremented SortSpec*
@@ -35,7 +35,7 @@
* @param field The name of a field which is indexed but not analyzed.
* @param reverse If true, everse the order of the sort for this particular field.
*/
- void
+ public void
Add(SortSpec *self, const CharBuf *field, bool_t reverse = false);

public void

Modified: trunk/c_src/KinoSearch/Search/Span.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Span.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Span.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -24,38 +24,38 @@
* @param length Integer length, unit is context-dependent.
* @param weight A floating point weight.
*/
- static Span*
+ public static Span*
init(Span *self, i32_t offset, i32_t length,
float weight = 0.0);

/** Accessor for <code>offset</code> attribute.
*/
- i32_t
+ public i32_t
Get_Offset(Span *self);

/** Setter for <code>offset</code> attribute.
*/
- void
+ public void
Set_Offset(Span *self, i32_t offset);

/** Accessor for <code>length</code> attribute.
*/
- i32_t
+ public i32_t
Get_Length(Span *self);

/** Setter for <code>length</code> attribute.
*/
- void
+ public void
Set_Length(Span *self, i32_t length);

/** Accessor for <code>weight</code> attribute.
*/
- float
+ public float
Get_Weight(Span *self);

/** Setter for <code>weight</code> attribute.
*/
- void
+ public void
Set_Weight(Span *self, float weight);

static int

Modified: trunk/c_src/KinoSearch/Search/Tally.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/Tally.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/Tally.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -19,17 +19,17 @@

/** Constructor. Takes no arguments.
*/
- static Tally*
+ public static Tally*
init(Tally *self);

/** Setter for the Tally's score member.
*/
- void
+ public void
Set_Score(Tally *self, float score);

/** Getter for the Tally's score member.
*/
- float
+ public float
Get_Score(Tally *self);

void

Modified: trunk/c_src/KinoSearch/Search/TermQuery.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/TermQuery.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/TermQuery.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -22,7 +22,7 @@
* @param field Field name.
* @param term Term text.
*/
- static TermQuery*
+ public static TermQuery*
init(TermQuery *self, const CharBuf *field, const Obj *term);

/** Accessor for object's <code>field</code> member.
@@ -35,7 +35,7 @@
Obj*
Get_Term(TermQuery *self);

- incremented Compiler*
+ public incremented Compiler*
Make_Compiler(TermQuery *self, Searchable *searchable, float boost);

incremented CharBuf*

Modified: trunk/c_src/KinoSearch/Search/TermScorer.bp
===================================================================
--- trunk/c_src/KinoSearch/Search/TermScorer.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Search/TermScorer.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -21,16 +21,16 @@
void
Destroy(TermScorer *self);

- u32_t
+ public u32_t
Next(TermScorer* self);

- u32_t
+ public u32_t
Skip_To(TermScorer* self, u32_t target);

- u32_t
+ public u32_t
Get_Doc_Num(TermScorer* self);

- Tally*
+ public Tally*
Tally(TermScorer* self);
}


Modified: trunk/c_src/KinoSearch/Searcher.bp
===================================================================
--- trunk/c_src/KinoSearch/Searcher.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Searcher.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -20,20 +20,20 @@
* @param invindex A KinoSearch::InvIndex.
* @param reader A KinoSearch::Index::IndexReader.
*/
- static Searcher*
+ public static Searcher*
init(Searcher *self, InvIndex *invindex = NULL,
IndexReader *reader = NULL);

void
Destroy(Searcher *self);

- u32_t
+ public u32_t
Max_Docs(Searcher *self);

- u32_t
+ public u32_t
Doc_Freq(Searcher *self, const CharBuf *field, Obj *term);

- void
+ public void
Collect(Searcher *self, Query *query, HitCollector *collector);

incremented TopDocs*
@@ -48,7 +48,7 @@

/** Accessor for the object's <code>reader</code> member.
*/
- IndexReader*
+ public IndexReader*
Get_Reader(Searcher *self);

void

Modified: trunk/c_src/KinoSearch/Store/FSFolder.bp
===================================================================
--- trunk/c_src/KinoSearch/Store/FSFolder.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Store/FSFolder.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -18,7 +18,7 @@
* be necessary to create the directory yourself if you aren't relying on
* a higher-level wrapper method such as InvIndex's Clobber().
*/
- static FSFolder*
+ public static FSFolder*
init(FSFolder *self, const CharBuf *path);

void

Modified: trunk/c_src/KinoSearch/Store/Folder.bp
===================================================================
--- trunk/c_src/KinoSearch/Store/Folder.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Store/Folder.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -17,7 +17,7 @@
CharBuf *path;
Hash *cf_readers;

- static Folder*
+ public static Folder*
init(Folder *self, const CharBuf *path);

/** Given a filename, return an OutStream object.

Modified: trunk/c_src/KinoSearch/Store/Lock.bp
===================================================================
--- trunk/c_src/KinoSearch/Store/Lock.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Store/Lock.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -35,7 +35,7 @@
* @param timeout Time in milliseconds to keep retrying before abandoning
* the attempt to Obtain() a lock.
*/
- static Lock*
+ public static Lock*
init(Lock *self, Folder *folder, const CharBuf *lock_name,
const CharBuf *agent_id, i32_t timeout = 0);

@@ -44,7 +44,7 @@
*
* @return true on success, false otherwise.
*/
- bool_t
+ public bool_t
Obtain(Lock *self);

/** Do the actual work to aquire the lock and return a boolean reflecting
@@ -55,7 +55,7 @@

/** Release the lock.
*/
- void
+ public void
Release(Lock *self);

/** Indicate whether the resource identified by this lock's name is
@@ -63,14 +63,14 @@
*
* @return true if the resource is locked, false otherwise.
*/
- bool_t
+ public bool_t
Is_Locked(Lock *self);

/** Release all locks that meet the following three conditions: the lock
* name matches, the agent id matches, and the process id that the lock
* was created under no longer identifies an active process.
*/
- void
+ public void
Clear_Stale(Lock *self);

/** Accessor for object's filename attribute.

Modified: trunk/c_src/KinoSearch/Store/LockFactory.bp
===================================================================
--- trunk/c_src/KinoSearch/Store/LockFactory.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Store/LockFactory.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -75,7 +75,7 @@
* @param folder A L<KinoSearch::Store::Folder>.
* @param agent_id An identifying string -- typically, the hostname.
*/
- static LockFactory*
+ public static LockFactory*
init(LockFactory *self, Folder *folder, const CharBuf *agent_id);

/** Return a Lock object, which, once Obtain() returns successfully,

Modified: trunk/c_src/KinoSearch/Store/RAMFolder.bp
===================================================================
--- trunk/c_src/KinoSearch/Store/RAMFolder.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Store/RAMFolder.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -24,7 +24,7 @@
* @param path If supplied, attempt to read an FSFolder at that location
* into memory; otherwise the Folder starts out empty.
*/
- static RAMFolder*
+ public static RAMFolder*
init(RAMFolder *self, const CharBuf *path = NULL);

/** Return the underlying RAMFileDes for the specified filename.

Modified: trunk/c_src/KinoSearch/Store/SharedLock.bp
===================================================================
--- trunk/c_src/KinoSearch/Store/SharedLock.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Store/SharedLock.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -38,17 +38,17 @@
* @param timeout Time in milliseconds to keep retrying before abandoning
* the attempt to Obtain() a lock.
*/
- static SharedLock*
+ public static SharedLock*
init(SharedLock *self, Folder *folder, const CharBuf *lock_name,
const CharBuf *agent_id, i32_t timeout = 0);

bool_t
Do_Obtain(SharedLock *self);

- void
+ public void
Release(SharedLock *self);

- bool_t
+ public bool_t
Is_Locked(SharedLock *self);
}


Modified: trunk/c_src/KinoSearch/Test/TestQueryParser.bp
===================================================================
--- trunk/c_src/KinoSearch/Test/TestQueryParser.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Test/TestQueryParser.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -18,7 +18,7 @@
new(const char *query_string = NULL, Query *tree = NULL,
Query *expanded = NULL, u32_t num_hits);

- static incremented TestQueryParser*
+ static TestQueryParser*
init(TestQueryParser *self, const char *query_string = NULL,
Query *tree = NULL, Query *expanded = NULL, u32_t num_hits);


Modified: trunk/c_src/KinoSearch/Util/BitVector.bp
===================================================================
--- trunk/c_src/KinoSearch/Util/BitVector.bp 2008-08-23 04:13:05 UTC (rev 3747)
+++ trunk/c_src/KinoSearch/Util/BitVector.bp 2008-08-23 19:03:24 UTC (rev 3748)
@@ -19,7 +19,7 @@
* @param capacity The number of bits that the initial array should be
* able to hold.
*/
- static BitVector*
+ public static BitVector*
init(BitVector *self, u32_t capacity = 0);

/** Return true if the bit indicated has been set, false if it
@@ -28,26 +28,26 @@
*
* @param tick The requested bit.
*/
- bool_t
+ public bool_t
Get(const BitVector *self, u32_t tick);

/** Set the indicated bit at to 1.
*
* @param tick The bit to be set.
*/
- void
+ public void
Set(BitVector *self, u32_t tick);

/** Clear the indicated bit. (i.e. set it to 0).
*
* @param tick The bit to be cleared.
*/
- void
+ public void
Clear(BitVector *self, u32_t tick);

/** Clear all bits.
*/
- void
+ public void
Clear_All(BitVector *self);

/** If the BitVector does not already have enough room to hold the
@@ -55,14 +55,14 @@
*
* @param capacity Least number of bits the BitVector should accomodate.
*/
- void
+ public void
Grow(BitVector *self, u32_t capacity);

/** Duplicate the contents of another BitVector.
*
* @param other Another BitVector.
*/
- void
+ public void
Copy(BitVector *self, BitVector *other);

/** Modify the BitVector so that only bits which remain set are those
@@ -71,7 +71,7 @@
*
* @param other Another BitVector.
*/
- void
+ public void
And(BitVector *self, const BitVector *other);

/** Modify the BitVector, setting all bits which are set in the other
@@ -79,28 +79,28 @@
*
* @param other Another BitVector.
*/
- void
+ public void
Or(BitVector *self, const BitVector *other);

/** Modify the BitVector, performing an XOR operation against the other.
*
* @param other Another BitVector.
*/
- void
+ public void
Xor(BitVector *self, const BitVector *other);

/** Modify the BitVector, clearing all bits which are set in the other.
*
* @param other Another BitVector.
*/
- void
+ public void
And_Not(BitVector *self, const BitVector *other);

/** Invert the value of a bit.
*
* @param tick The bit to invert.
*/
- void
+ public void
Flip(BitVector *self, u32_t tick);

/** Invert each bit within a contiguous block.
@@ -108,17 +108,17 @@
* @param offset Lower bound.
* @param length The number of bits to flip.
*/
- void
+ public void
Flip_Block(BitVector *self, u32_t offset, u32_t length);

/** Return a count of the number of set bits.
*/
- u32_t
+ public u32_t
Count(BitVector *self);

/** Return an array where each element represents a set bit.
*/
- incremented I32Array*
+ public incremented I32Array*
To_Array(BitVector *self);

void


_______________________________________________
kinosearch-commits mailing list
kinosearch-commits@rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch-commits