Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

InvFPDocList Class Reference

#include <InvFPDocList.hpp>

Inheritance diagram for InvFPDocList:

InvDocList DocInfoList List of all members.

Public Methods

 InvFPDocList ()
 InvFPDocList (int id,int len)
 constructor for this list using malloc for its own memory usage of InvFPDocList without MemCache has not been tested.

 InvFPDocList (MemCache *mc,int id,int len)
 constructors for this list getting memory from a MemCache.

 InvFPDocList (MemCache *mc,int id,int len,int docid,int location)
 InvFPDocList (int id,int listlen,int *list,int fr,int *ldocid,int len)
 constructor for a list not needing to get any memory.

 ~InvFPDocList ()
bool addTerm (int docid)
 increase count for this docid, we don't care about location.

bool addLocation (int docid,LOC_T location)
bool append (InvDocList *tail)
 append the given list to the end of this list. watch for overlap of lastdocid of this list and first docid of given list.

virtual DocInfonextEntry ()
 fetch the next entry, return a pointer to a local static memory, so do not delete it.

virtual void nextEntry (InvFPDocInfo *info)

Protected Methods

virtual void deltaEncode ()
 delta encode docids and positions from begin through end call before write.

virtual void deltaDecode ()
 delta decode docids and positions from begin through end call after read.


Constructor & Destructor Documentation

InvFPDocList::InvFPDocList ( )
 

InvFPDocList::InvFPDocList ( int id,
int len )
 

constructor for this list using malloc for its own memory usage of InvFPDocList without MemCache has not been tested.

InvFPDocList::InvFPDocList ( MemCache * mc,
int id,
int len )
 

constructors for this list getting memory from a MemCache.

InvFPDocList::InvFPDocList ( MemCache * mc,
int id,
int len,
int docid,
int location )
 

InvFPDocList::InvFPDocList ( int id,
int listlen,
int * list,
int fr,
int * ldocid,
int len )
 

constructor for a list not needing to get any memory.

InvFPDocList::~InvFPDocList ( )
 


Member Function Documentation

bool InvFPDocList::addLocation ( int docid,
LOC_T location )
 

bool InvFPDocList::addTerm ( int docid ) [virtual]
 

increase count for this docid, we don't care about location.

Reimplemented from InvDocList.

bool InvFPDocList::append ( InvDocList * par_tail ) [virtual]
 

append the given list to the end of this list. watch for overlap of lastdocid of this list and first docid of given list.

Reimplemented from InvDocList.

void InvFPDocList::deltaDecode ( ) [protected, virtual]
 

delta decode docids and positions from begin through end call after read.

Reimplemented from InvDocList.

void InvFPDocList::deltaEncode ( ) [protected, virtual]
 

delta encode docids and positions from begin through end call before write.

Reimplemented from InvDocList.

void InvFPDocList::nextEntry ( InvFPDocInfo * info ) [virtual]
 

DocInfo * InvFPDocList::nextEntry ( ) [virtual]
 

fetch the next entry, return a pointer to a local static memory, so do not delete it.

Reimplemented from InvDocList.


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 18:27:01 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000