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

DocInfo Class Reference

Representation of Doc Information Entry. More...

#include <DocInfoList.hpp>

Inheritance diagram for DocInfo:

indri::index::DocListInfo InvDocInfo InvFPDocInfo List of all members.

Public Methods

 DocInfo ()
 DocInfo (DOCID_T docID, COUNT_T termCount)
virtual ~DocInfo ()
virtual DOCID_T docID () const
 Doc id.

virtual void docID (DOCID_T id)
 Set doc id.

virtual COUNT_T termCount () const
 Term count in the doc.

virtual void termCount (COUNT_T c)
 Set term count.

virtual const LOC_T * positions () const
virtual void positions (const LOC_T *pos)

Protected Attributes

DOCID_T did
COUNT_T tcount

Detailed Description

Representation of Doc Information Entry.

This is a class that represents the information associated with each doc entry in the term to doc index. The basic information includes the doc ID and the frequency of a term in the document.


Constructor & Destructor Documentation

DocInfo::DocInfo (    )  [inline]
 

DocInfo::DocInfo (  DOCID_T    docID,
COUNT_T    termCount
)  [inline]
 

virtual DocInfo::~DocInfo (    )  [inline, virtual]
 


Member Function Documentation

virtual void DocInfo::docID (  DOCID_T    id )  [inline, virtual]
 

Set doc id.

virtual DOCID_T DocInfo::docID (    )  const [inline, virtual]
 

Doc id.

Reimplemented in indri::index::DocListInfo, and InvDocInfo.

virtual void DocInfo::positions (  const LOC_T *    pos )  [inline, virtual]
 

Set the list of positions Default implementation does nothing

Reimplemented in InvFPDocInfo.

virtual const LOC_T* DocInfo::positions (    )  const [inline, virtual]
 

Return list of positions this term occurs in this document Default implementation to return NULL if no position information available for this DocInfo

Reimplemented in indri::index::DocListInfo, and InvFPDocInfo.

virtual void DocInfo::termCount (  COUNT_T    c )  [inline, virtual]
 

Set term count.

virtual COUNT_T DocInfo::termCount (    )  const [inline, virtual]
 

Term count in the doc.

Reimplemented in indri::index::DocListInfo, and InvDocInfo.


Member Data Documentation

DOCID_T DocInfo::did [protected]
 

COUNT_T DocInfo::tcount [protected]
 


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