ORScorer* ORScorer_init(ORScorer *self, VArray *children, Similarity *sim) { S_ormatcher_init2((ORMatcher*)self, children, sim); self->doc_id = 0; self->scores = (float*)MALLOCATE(self->num_kids * sizeof(float)); // Establish the state of all child matchers being past the current doc // id, by invoking ORMatcher's Next() method. ORMatcher_next((ORMatcher*)self); return self; }
ORScorer* ORScorer_init(ORScorer *self, Vector *children, Similarity *sim) { ORScorerIVARS *const ivars = ORScorer_IVARS(self); S_ormatcher_init2((ORMatcher*)self, (ORMatcherIVARS*)ivars, children, sim); ivars->doc_id = 0; ivars->scores = (float*)MALLOCATE(ivars->num_kids * sizeof(float)); // Establish the state of all child matchers being past the current doc // id, by invoking ORMatcher's Next() method. ORMatcher_Next_IMP((ORMatcher*)self); return self; }
ORMatcher* ORMatcher_init(ORMatcher *self, Vector *children) { ORMatcherIVARS *const ivars = ORMatcher_IVARS(self); return S_ormatcher_init2(self, ivars, children, NULL); }
ORMatcher* ORMatcher_init(ORMatcher *self, VArray *children) { return S_ormatcher_init2(self, children, NULL); }