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

InvFPTermList Class Reference

#include <InvFPTermList.hpp>

Inheritance diagram for InvFPTermList:

TermInfoList InvFPTermPropList List of all members.

Public Methods

 InvFPTermList ()
 InvFPTermList (DOCID_T did, int len, vector< LocatedTerm > &tls)
 ~InvFPTermList ()
void startIteration () const
 prepare iteration

bool hasMore () const
 has more entries

TermInfo * nextEntry () const
 Get a pointer to the next entry (pointer to a local static memory).

COUNT_T docLength () const
 Get the length of this document.

COUNT_T termCount () const
 Get the number of terms in this document.

DOCID_T docID () const
 Get the docid this list is for.

bool binRead (ifstream &infile)
bool binReadC (ifstream &infile)
 Read in a compressed TermInfoList object from a file.

void binWriteC (ofstream &ofile)
 Write a compressed TermInfoList object to a file.

bool binReadC (File &infile)
void binWriteC (File &outfile)
virtual void deltaDecode ()
virtual void deltaEncode ()
void countTerms ()
 Change our default sequence of words representation to be bag of words.


Protected Methods

virtual TermInfo * newElement () const
 create new element of this list type for the iterator

virtual TermInfo * getElement (TermInfo *elem, POS_T position) const
 set element from position, returns pointer to the element

virtual void assignElement (TermInfo *to, TermInfo *from) const
 copy values from one Element (of type InvFPTerm) to another

virtual POS_T beginPosition () const
 position at beginning of list

virtual POS_T endPosition () const
 position at end of list

virtual POS_T nextPosition (POS_T position) const
 advance position


Protected Attributes

DOCID_T uid
COUNT_T length
LocatedTerm * list
LLTerm * listcounted
COUNT_T listlen
int index
LOC_T * counts
InvFPTerm entry
vector< LOC_T > loclist

Constructor & Destructor Documentation

InvFPTermList::InvFPTermList (    ) 
 

InvFPTermList::InvFPTermList (  DOCID_T    did,
int    len,
vector< LocatedTerm > &    tls
) 
 

InvFPTermList::~InvFPTermList (    ) 
 


Member Function Documentation

virtual void InvFPTermList::assignElement (  TermInfo *    to,
TermInfo *    from
)  const [inline, protected, virtual]
 

copy values from one Element (of type InvFPTerm) to another

Reimplemented from TermInfoList.

virtual POS_T InvFPTermList::beginPosition (    )  const [inline, protected, virtual]
 

position at beginning of list

Implements TermInfoList.

bool InvFPTermList::binRead (  ifstream &    infile ) 
 

Read in a TermInfoList object from a file Assumes the following format: DOCID DOCLENGTH UNIQUE_TERM_COUNT [TERM LOC]..[]

bool InvFPTermList::binReadC (  File &    infile ) 
 

bool InvFPTermList::binReadC (  ifstream &    infile ) 
 

Read in a compressed TermInfoList object from a file.

void InvFPTermList::binWriteC (  File &    outfile ) 
 

void InvFPTermList::binWriteC (  ofstream &    ofile ) 
 

Write a compressed TermInfoList object to a file.

void InvFPTermList::countTerms (    ) 
 

Change our default sequence of words representation to be bag of words.

void InvFPTermList::deltaDecode (    )  [virtual]
 

delta decode termids and positions from begin through end call after read

void InvFPTermList::deltaEncode (    )  [virtual]
 

delta encode termids and positions from begin through end call before write

DOCID_T InvFPTermList::docID (    )  const [inline]
 

Get the docid this list is for.

COUNT_T InvFPTermList::docLength (    )  const [inline]
 

Get the length of this document.

virtual POS_T InvFPTermList::endPosition (    )  const [inline, protected, virtual]
 

position at end of list

Implements TermInfoList.

TermInfo * InvFPTermList::getElement (  TermInfo *    elem,
POS_T    position
)  const [protected, virtual]
 

set element from position, returns pointer to the element

Implements TermInfoList.

bool InvFPTermList::hasMore (    )  [virtual]
 

has more entries

Implements TermInfoList.

virtual TermInfo* InvFPTermList::newElement (    )  const [inline, protected, virtual]
 

create new element of this list type for the iterator

Reimplemented from TermInfoList.

TermInfo * InvFPTermList::nextEntry (    )  [virtual]
 

Get a pointer to the next entry (pointer to a local static memory).

Implements TermInfoList.

POS_T InvFPTermList::nextPosition (  POS_T    position )  const [protected, virtual]
 

advance position

Implements TermInfoList.

void InvFPTermList::startIteration (    )  [virtual]
 

prepare iteration

Implements TermInfoList.

COUNT_T InvFPTermList::termCount (    )  const [inline]
 

Get the number of terms in this document.


Member Data Documentation

LOC_T* InvFPTermList::counts [protected]
 

InvFPTerm InvFPTermList::entry [protected]
 

int InvFPTermList::index [protected]
 

COUNT_T InvFPTermList::length [protected]
 

LocatedTerm* InvFPTermList::list [protected]
 

LLTerm* InvFPTermList::listcounted [protected]
 

COUNT_T InvFPTermList::listlen [protected]
 

vector<LOC_T> InvFPTermList::loclist [protected]
 

DOCID_T InvFPTermList::uid [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:41 2004 for Lemur Toolkit by doxygen1.2.18