/** @file */
/***********************************************

 !!!! DO NOT EDIT THIS FILE !!!!

 All content has been auto-generated by 
 the boilerplater.pl utility.

 See boilerplater's documentation for details.

 ***********************************************/



#ifndef R_KINO_MATCHPOSTING
#define R_KINO_MATCHPOSTING 1

#include "KinoSearch/Posting/MatchPosting.h"

#define KINO_MATCHPOSTING_BOILERPLATE

typedef void
(*kino_MatchPost_reset_t)(kino_MatchPosting *self, chy_u32_t doc_num);

typedef struct kino_MatchPostingScorer*
(*kino_MatchPost_make_scorer_t)(kino_MatchPosting *self, 
                           struct kino_Similarity *sim,
                           struct kino_PostingList *plist, 
                           void *weight, float weight_val);

typedef kino_MatchPosting*
(*kino_MatchPost_dupe_t)(kino_MatchPosting *self, struct kino_Similarity *sim);

#define Kino_MatchPost_Clone(self) \
    (self)->_->clone((kino_Obj*)self)

#define Kino_MatchPost_Destroy(self) \
    (self)->_->destroy((kino_Obj*)self)

#define Kino_MatchPost_Equals(self, other) \
    (self)->_->equals((kino_Obj*)self, other)

#define Kino_MatchPost_Hash_Code(self) \
    (self)->_->hash_code((kino_Obj*)self)

#define Kino_MatchPost_Is_A(self, target_vtable) \
    (self)->_->is_a((kino_Obj*)self, target_vtable)

#define Kino_MatchPost_To_String(self) \
    (self)->_->to_string((kino_Obj*)self)

#define Kino_MatchPost_Serialize(self, target) \
    (self)->_->serialize((kino_Obj*)self, target)

#define Kino_MatchPost_Read_Record(self, instream) \
    (self)->_->read_record((kino_Stepper*)self, instream)

#define Kino_MatchPost_Dump(self, instream) \
    (self)->_->dump((kino_Stepper*)self, instream)

#define Kino_MatchPost_Dump_To_File(self, instream, outstream) \
    (self)->_->dump_to_file((kino_Stepper*)self, instream, outstream)

#define Kino_MatchPost_Read_Raw(self, instream, last_doc_num, term_text, mem_pool) \
    (self)->_->read_raw((kino_Posting*)self, instream, last_doc_num, term_text, mem_pool)

#define Kino_MatchPost_Add_Batch_To_Pool(self, post_pool, batch, fspec, doc_num, doc_boost, length_norm) \
    (self)->_->add_batch_to_pool((kino_Posting*)self, post_pool, batch, fspec, doc_num, doc_boost, length_norm)

#define Kino_MatchPost_Reset(self, doc_num) \
    (self)->_->reset((kino_Posting*)self, doc_num)

#define Kino_MatchPost_Make_Scorer(self, sim, plist, weight, weight_val) \
    (self)->_->make_scorer((kino_Posting*)self, sim, plist, weight, weight_val)

#define Kino_MatchPost_Dupe(self, sim) \
    (self)->_->dupe((kino_Posting*)self, sim)

struct KINO_MATCHPOSTING_VTABLE {
    KINO_OBJ_VTABLE *_;
    chy_u32_t refcount;
    KINO_OBJ_VTABLE *parent;
    const char *class_name;
    kino_Obj_clone_t clone;
    kino_Obj_destroy_t destroy;
    kino_Obj_equals_t equals;
    kino_Obj_hash_code_t hash_code;
    kino_Obj_is_a_t is_a;
    kino_Obj_to_string_t to_string;
    kino_Obj_serialize_t serialize;
    kino_Stepper_read_record_t read_record;
    kino_Stepper_dump_t dump;
    kino_Stepper_dump_to_file_t dump_to_file;
    kino_Post_read_raw_t read_raw;
    kino_Post_add_batch_to_pool_t add_batch_to_pool;
    kino_Post_reset_t reset;
    kino_Post_make_scorer_t make_scorer;
    kino_Post_dupe_t dupe;
};

extern KINO_MATCHPOSTING_VTABLE KINO_MATCHPOSTING;

#ifdef KINO_USE_SHORT_NAMES
  #define MatchPosting kino_MatchPosting
  #define MATCHPOSTING KINO_MATCHPOSTING
  #define MatchPost_new kino_MatchPost_new
  #define MatchPost_reset kino_MatchPost_reset
  #define MatchPost_make_scorer kino_MatchPost_make_scorer
  #define MatchPost_dupe kino_MatchPost_dupe
  #define MatchPost_Clone Kino_MatchPost_Clone
  #define MatchPost_Destroy Kino_MatchPost_Destroy
  #define MatchPost_Equals Kino_MatchPost_Equals
  #define MatchPost_Hash_Code Kino_MatchPost_Hash_Code
  #define MatchPost_Is_A Kino_MatchPost_Is_A
  #define MatchPost_To_String Kino_MatchPost_To_String
  #define MatchPost_Serialize Kino_MatchPost_Serialize
  #define MatchPost_Read_Record Kino_MatchPost_Read_Record
  #define MatchPost_Dump Kino_MatchPost_Dump
  #define MatchPost_Dump_To_File Kino_MatchPost_Dump_To_File
  #define MatchPost_Read_Raw Kino_MatchPost_Read_Raw
  #define MatchPost_Add_Batch_To_Pool Kino_MatchPost_Add_Batch_To_Pool
  #define MatchPost_Reset Kino_MatchPost_Reset
  #define MatchPost_Make_Scorer Kino_MatchPost_Make_Scorer
  #define MatchPost_Dupe Kino_MatchPost_Dupe
#endif /* KINO_USE_SHORT_NAMES */

#define KINO_MATCHPOSTING_MEMBER_VARS \
    chy_u32_t  refcount; \
    struct kino_Similarity * sim; \
    chy_u32_t  doc_num

#ifdef KINO_WANT_MATCHPOSTING_VTABLE
KINO_MATCHPOSTING_VTABLE KINO_MATCHPOSTING = {
    (KINO_OBJ_VTABLE*)&KINO_VIRTUALTABLE,
    1,
    (KINO_OBJ_VTABLE*)&KINO_POSTING,
    "KinoSearch::Posting::MatchPosting",
    (kino_Obj_clone_t)kino_Obj_clone,
    (kino_Obj_destroy_t)kino_Post_destroy,
    (kino_Obj_equals_t)kino_Obj_equals,
    (kino_Obj_hash_code_t)kino_Obj_hash_code,
    (kino_Obj_is_a_t)kino_Obj_is_a,
    (kino_Obj_to_string_t)kino_Obj_to_string,
    (kino_Obj_serialize_t)kino_Obj_serialize,
    (kino_Stepper_read_record_t)kino_Stepper_read_record,
    (kino_Stepper_dump_t)kino_Stepper_dump,
    (kino_Stepper_dump_to_file_t)kino_Stepper_dump_to_file,
    (kino_Post_read_raw_t)kino_Post_read_raw,
    (kino_Post_add_batch_to_pool_t)kino_Post_add_batch_to_pool,
    (kino_Post_reset_t)kino_MatchPost_reset,
    (kino_Post_make_scorer_t)kino_MatchPost_make_scorer,
    (kino_Post_dupe_t)kino_MatchPost_dupe
};
#endif /* KINO_WANT_MATCHPOSTING_VTABLE */

#undef KINO_MATCHPOSTING_BOILERPLATE


#endif /* R_KINO_MATCHPOSTING */


/* Copyright 2007 Marvin Humphrey
 *
 * This program is free software; you can redistribute it and/or modify
 * under the same terms as Perl itself.
 */