#include <index_utils.h>
Collaboration diagram for FileIndexer:

Public Member Functions | |
| FileIndexer (const std::string &datadir_, const std::vector< std::string > &files) | |
| operator bool () | |
| Xapian::Document | next () |
Private Member Functions | |
| void | next_file () |
Private Attributes | |
| std::string | datadir |
| std::vector< std::string >::const_iterator | file |
| std::vector< std::string >::const_iterator | end |
| std::ifstream | input |
Definition at line 31 of file index_utils.h.
| FileIndexer::FileIndexer | ( | const std::string & | datadir_, | |
| const std::vector< std::string > & | files | |||
| ) | [inline] |
| void FileIndexer::next_file | ( | ) | [private] |
Definition at line 155 of file index_utils.cc.
References datadir, end, endswith(), and file.
Referenced by FileIndexer(), and next().
| FileIndexer::operator bool | ( | ) | [inline] |
| Xapian::Document FileIndexer::next | ( | ) |
Definition at line 49 of file index_utils.cc.
References Xapian::Document::add_posting(), Xapian::Document::add_value(), C_isnotspace(), C_isspace(), get_paragraph(), munge_term(), next_file(), Xapian::Document::set_data(), and stemmer.
std::string FileIndexer::datadir [private] |
std::vector<std::string>::const_iterator FileIndexer::file [private] |
std::vector<std::string>::const_iterator FileIndexer::end [private] |
std::ifstream FileIndexer::input [private] |
Definition at line 34 of file index_utils.h.