本文整理汇总了C++中VTable_Make_Obj函数的典型用法代码示例。如果您正苦于以下问题:C++ VTable_Make_Obj函数的具体用法?C++ VTable_Make_Obj怎么用?C++ VTable_Make_Obj使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了VTable_Make_Obj函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PolyMatcher_new
PolyMatcher*
PolyMatcher_new(VArray *children, Similarity *sim)
{
PolyMatcher *self = (PolyMatcher*)VTable_Make_Obj(&POLYMATCHER);
return PolyMatcher_init(self, children, sim);
}
示例2: FSFH_open
FSFileHandle*
FSFH_open(const CharBuf *path, uint32_t flags) {
FSFileHandle *self = (FSFileHandle*)VTable_Make_Obj(FSFILEHANDLE);
return FSFH_do_open(self, path, flags);
}
示例3: Int64Type_new
Int64Type*
Int64Type_new() {
Int64Type *self = (Int64Type*)VTable_Make_Obj(INT64TYPE);
return Int64Type_init(self);
}
示例4: SegReader_new
SegReader*
SegReader_new(Schema *schema, Folder *folder, Snapshot *snapshot,
VArray *segments, int32_t seg_tick) {
SegReader *self = (SegReader*)VTable_Make_Obj(SEGREADER);
return SegReader_init(self, schema, folder, snapshot, segments, seg_tick);
}
示例5: PhraseQuery_new
PhraseQuery*
PhraseQuery_new(const CharBuf *field, VArray *terms)
{
PhraseQuery *self = (PhraseQuery*)VTable_Make_Obj(&PHRASEQUERY);
return PhraseQuery_init(self, field, terms);
}
示例6: TestNOTQuery_new
TestNOTQuery*
TestNOTQuery_new() {
return (TestNOTQuery*)VTable_Make_Obj(TESTNOTQUERY);
}
示例7: DocWriter_new
DocWriter*
DocWriter_new(Schema *schema, Snapshot *snapshot, Segment *segment,
PolyReader *polyreader) {
DocWriter *self = (DocWriter*)VTable_Make_Obj(DOCWRITER);
return DocWriter_init(self, schema, snapshot, segment, polyreader);
}
示例8: ORScorer_new
ORScorer*
ORScorer_new(VArray *children, Similarity *sim) {
ORScorer *self = (ORScorer*)VTable_Make_Obj(ORSCORER);
return ORScorer_init(self, children, sim);
}
示例9: ORMatcher_new
ORMatcher*
ORMatcher_new(VArray *children) {
ORMatcher *self = (ORMatcher*)VTable_Make_Obj(ORMATCHER);
return ORMatcher_init(self, children);
}
示例10: SortColl_new
SortCollector*
SortColl_new(Schema *schema, SortSpec *sort_spec, uint32_t wanted) {
SortCollector *self = (SortCollector*)VTable_Make_Obj(SORTCOLLECTOR);
return SortColl_init(self, schema, sort_spec, wanted);
}
示例11: InStream_open
InStream*
InStream_open(Obj *file) {
InStream *self = (InStream*)VTable_Make_Obj(INSTREAM);
return InStream_do_open(self, file);
}
示例12: TestAtomic_new
TestAtomic*
TestAtomic_new() {
return (TestAtomic*)VTable_Make_Obj(TESTATOMIC);
}
示例13: MatchPost_new
MatchPosting*
MatchPost_new(Similarity *sim) {
MatchPosting *self = (MatchPosting*)VTable_Make_Obj(MATCHPOSTING);
return MatchPost_init(self, sim);
}
示例14: MatchTInfoStepper_new
MatchTermInfoStepper*
MatchTInfoStepper_new(Schema *schema) {
MatchTermInfoStepper *self
= (MatchTermInfoStepper*)VTable_Make_Obj(MATCHTERMINFOSTEPPER);
return MatchTInfoStepper_init(self, schema);
}
示例15: Hash_new
Hash*
Hash_new(uint32_t capacity) {
Hash *self = (Hash*)VTable_Make_Obj(HASH);
return Hash_init(self, capacity);
}