aitools::invertedindex::PostlistWriter Class Reference

#include <PostlistWriter.hpp>

List of all members.

Public Types

typedef boost::shared_ptr
< PostlistWriter
SharedPointer

Public Member Functions

 PostlistWriter ()
 PostlistWriter (const bfs::path &path) throw (std::invalid_argument)
 ~PostlistWriter ()
void close ()
bool is_open () const
void open (const bfs::path &path) throw (std::runtime_error, std::invalid_argument)
void write (Iterator::SharedPointer iterator)
const bfs::path & path () const
bool ready () const
uint64_t tell ()

Private Attributes

FILE * file_
bfs::path path_

Detailed Description

A class to write postlists into a file on disk.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
PostlistWriter.hpp,v 1.7 2010/05/11 23:41:08 trenkman Exp

Definition at line 25 of file PostlistWriter.hpp.


Member Typedef Documentation

Definition at line 29 of file PostlistWriter.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::PostlistWriter::PostlistWriter (  ) 

The default constructor.

Definition at line 4 of file PostlistWriter.cpp.

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

The explicit constructor.

Definition at line 8 of file PostlistWriter.cpp.

aitools::invertedindex::PostlistWriter::~PostlistWriter (  ) 

The destructor.

Definition at line 15 of file PostlistWriter.cpp.


Member Function Documentation

void aitools::invertedindex::PostlistWriter::close (  ) 

Definition at line 21 of file PostlistWriter.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

bool aitools::invertedindex::PostlistWriter::is_open (  )  const

Definition at line 32 of file PostlistWriter.cpp.

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

Definition at line 38 of file PostlistWriter.cpp.

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

Definition at line 50 of file PostlistWriter.cpp.

bool aitools::invertedindex::PostlistWriter::ready (  )  const

Definition at line 77 of file PostlistWriter.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

uint64_t aitools::invertedindex::PostlistWriter::tell (  ) 

Definition at line 83 of file PostlistWriter.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Here is the caller graph for this function:

void aitools::invertedindex::PostlistWriter::write ( Iterator::SharedPointer  iterator  ) 

Definition at line 56 of file PostlistWriter.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and write_postlist().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 67 of file PostlistWriter.hpp.

Definition at line 68 of file PostlistWriter.hpp.


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