aitools::invertedindex::PostlistReader Class Reference

#include <PostlistReader.hpp>

List of all members.

Public Types

typedef boost::shared_ptr
< PostlistReader
shared_pointer

Public Member Functions

 PostlistReader ()
 PostlistReader (const bfs::path &path) throw (std::invalid_argument)
 ~PostlistReader ()
void close ()
bool is_open () const
void open (const bfs::path &path) throw (std::runtime_error, std::invalid_argument)
Iterator::SharedPointer read (size_t length=INT_MAX) throw (std::runtime_error)
const bfs::path & path () const
bool ready () const
void rewind ()
void seek (size_t offset)
size_t tell ()

Private Attributes

FILE * file_
bfs::path path_

Static Private Attributes

static const size_t sizeof_value_size_t = Iterator::sizeof_value_size_t

Detailed Description

A class to read postlists from a binary file.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
PostlistReader.hpp,v 1.6 2010/05/11 23:41:08 trenkman Exp

Definition at line 26 of file PostlistReader.hpp.


Member Typedef Documentation

Definition at line 30 of file PostlistReader.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::PostlistReader::PostlistReader (  ) 

The default constructor.

Definition at line 4 of file PostlistReader.cpp.

aitools::invertedindex::PostlistReader::PostlistReader ( const bfs::path &  path  )  throw (std::invalid_argument)

The explicit constructor.

Definition at line 8 of file PostlistReader.cpp.

aitools::invertedindex::PostlistReader::~PostlistReader (  ) 

The destructor.

Definition at line 15 of file PostlistReader.cpp.


Member Function Documentation

void aitools::invertedindex::PostlistReader::close (  ) 

Definition at line 21 of file PostlistReader.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

bool aitools::invertedindex::PostlistReader::is_open (  )  const [inline]

Definition at line 57 of file PostlistReader.hpp.

References file_.

Referenced by ready().

Here is the caller graph for this function:

void aitools::invertedindex::PostlistReader::open ( const bfs::path &  path  )  throw (std::runtime_error, std::invalid_argument)

Definition at line 32 of file PostlistReader.cpp.

const bfs::path & aitools::invertedindex::PostlistReader::path (  )  const

Definition at line 44 of file PostlistReader.cpp.

Iterator::SharedPointer aitools::invertedindex::PostlistReader::read ( size_t  length = INT_MAX  )  throw (std::runtime_error)

Definition at line 50 of file PostlistReader.cpp.

Referenced by read_postlist().

Here is the caller graph for this function:

bool aitools::invertedindex::PostlistReader::ready (  )  const [inline]

Definition at line 70 of file PostlistReader.hpp.

References file_, and is_open().

Here is the call graph for this function:

void aitools::invertedindex::PostlistReader::rewind (  ) 

Definition at line 97 of file PostlistReader.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

void aitools::invertedindex::PostlistReader::seek ( size_t  offset  ) 

Definition at line 103 of file PostlistReader.cpp.

size_t aitools::invertedindex::PostlistReader::tell (  ) 

Definition at line 109 of file PostlistReader.cpp.

Referenced by read_postlist().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 83 of file PostlistReader.hpp.

Referenced by is_open(), and ready().

Definition at line 84 of file PostlistReader.hpp.

Definition at line 34 of file PostlistReader.hpp.


The documentation for this class was generated from the following files:
Generated on Wed May 30 15:07:37 2012 by  doxygen 1.6.3