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

KeyfileDocListSegmentReader Class Reference

#include <KeyfileDocListSegmentReader.hpp>

List of all members.

Public Methods

 KeyfileDocListSegmentReader (File *stream, std::string &baseName, int segment, int readBufferSize)
 Instantiate for a given file.

 ~KeyfileDocListSegmentReader ()
Filefile ()
 Return the File this reader reads.

InvFPDocListnext ()
 Return the next DocInfoList in the segment.

bool operator< (const KeyfileDocListSegmentReader &other) const
 Compare two Readers for merging.

const InvFPDocListtop () const
 Return the current DocInfoList in the segment.

InvFPDocListtop ()
 Return the current DocInfoList in the segment.

void pop ()
 set the current DocInfoList to the next in the segment

int segment () const
 Return which segment this reader reads.

const std::string & name () const
 Return the base name of the File this reader reads.


Private Attributes

File_stream
ReadBuffer_file
InvFPDocList_top
int _segment
std::string _name


Detailed Description

Provides a reader for DocInfoLists from a give segment in a File.


Constructor & Destructor Documentation

KeyfileDocListSegmentReader::KeyfileDocListSegmentReader File   stream,
std::string &    baseName,
int    segment,
int    readBufferSize
 

Instantiate for a given file.

KeyfileDocListSegmentReader::~KeyfileDocListSegmentReader  
 


Member Function Documentation

File * KeyfileDocListSegmentReader::file  
 

Return the File this reader reads.

const std::string & KeyfileDocListSegmentReader::name   const
 

Return the base name of the File this reader reads.

InvFPDocList * KeyfileDocListSegmentReader::next  
 

Return the next DocInfoList in the segment.

bool KeyfileDocListSegmentReader::operator< const KeyfileDocListSegmentReader &    other const
 

Compare two Readers for merging.

void KeyfileDocListSegmentReader::pop  
 

set the current DocInfoList to the next in the segment

int KeyfileDocListSegmentReader::segment   const
 

Return which segment this reader reads.

InvFPDocList * KeyfileDocListSegmentReader::top  
 

Return the current DocInfoList in the segment.

const InvFPDocList * KeyfileDocListSegmentReader::top   const
 

Return the current DocInfoList in the segment.


Member Data Documentation

ReadBuffer* KeyfileDocListSegmentReader::_file [private]
 

std::string KeyfileDocListSegmentReader::_name [private]
 

int KeyfileDocListSegmentReader::_segment [private]
 

File* KeyfileDocListSegmentReader::_stream [private]
 

InvFPDocList* KeyfileDocListSegmentReader::_top [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 07:12:03 2004 for LEMUR by doxygen1.2.16