/** @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_RAWPOSTING
#define R_KINO_RAWPOSTING 1
#include "KinoSearch/Posting/RawPosting.h"
#define KINO_RAWPOSTING_BOILERPLATE
typedef void
(*kino_RawPost_destroy_t)();
typedef void
(*kino_RawPost_write_record_t)(kino_RawPosting *self,
struct kino_OutStream *outstream,
chy_u32_t last_doc_num);
#define Kino_RawPost_Clone(self) \
(self)->_->clone((kino_Obj*)self)
#define Kino_RawPost_Destroy(self) \
(self)->_->destroy((kino_Obj*)self)
#define Kino_RawPost_Equals(self, other) \
(self)->_->equals((kino_Obj*)self, other)
#define Kino_RawPost_Hash_Code(self) \
(self)->_->hash_code((kino_Obj*)self)
#define Kino_RawPost_Is_A(self, target_vtable) \
(self)->_->is_a((kino_Obj*)self, target_vtable)
#define Kino_RawPost_To_String(self) \
(self)->_->to_string((kino_Obj*)self)
#define Kino_RawPost_Serialize(self, target) \
(self)->_->serialize((kino_Obj*)self, target)
#define Kino_RawPost_Write_Record(self, outstream, last_doc_num) \
(self)->_->write_record((kino_RawPosting*)self, outstream, last_doc_num)
struct KINO_RAWPOSTING_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_RawPost_write_record_t write_record;
};
extern KINO_RAWPOSTING_VTABLE KINO_RAWPOSTING;
#ifdef KINO_USE_SHORT_NAMES
#define RawPosting kino_RawPosting
#define RAWPOSTING KINO_RAWPOSTING
#define RawPost_new kino_RawPost_new
#define RawPost_destroy kino_RawPost_destroy
#define RawPost_write_record_t kino_RawPost_write_record_t
#define RawPost_write_record kino_RawPost_write_record
#define RawPost_Clone Kino_RawPost_Clone
#define RawPost_Destroy Kino_RawPost_Destroy
#define RawPost_Equals Kino_RawPost_Equals
#define RawPost_Hash_Code Kino_RawPost_Hash_Code
#define RawPost_Is_A Kino_RawPost_Is_A
#define RawPost_To_String Kino_RawPost_To_String
#define RawPost_Serialize Kino_RawPost_Serialize
#define RawPost_Write_Record Kino_RawPost_Write_Record
#endif /* KINO_USE_SHORT_NAMES */
#define KINO_RAWPOSTING_MEMBER_VARS \
chy_u32_t refcount; \
chy_u32_t freq; \
chy_u32_t content_len; \
chy_u32_t aux_len; \
char blob[1]
#ifdef KINO_WANT_RAWPOSTING_VTABLE
KINO_RAWPOSTING_VTABLE KINO_RAWPOSTING = {
(KINO_OBJ_VTABLE*)&KINO_VIRTUALTABLE,
1,
(KINO_OBJ_VTABLE*)&KINO_OBJ,
"KinoSearch::Index::RawPosting",
(kino_Obj_clone_t)kino_Obj_clone,
(kino_Obj_destroy_t)kino_RawPost_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_RawPost_write_record_t)kino_RawPost_write_record
};
#endif /* KINO_WANT_RAWPOSTING_VTABLE */
#undef KINO_RAWPOSTING_BOILERPLATE
#endif /* R_KINO_RAWPOSTING */
/* Copyright 2007 Marvin Humphrey
*
* This program is free software; you can redistribute it and/or modify
* under the same terms as Perl itself.
*/