concordia-library/concordia/index_searcher.hpp

41 lines
994 B
C++
Raw Normal View History

2013-11-28 16:47:57 +01:00
#ifndef INDEX_SEARCHER_HDR
#define INDEX_SEARCHER_HDR
#include <boost/shared_ptr.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
2013-11-28 16:47:57 +01:00
#include <fstream>
#include <iostream>
#include "concordia/common/config.hpp"
#include "concordia/substring_occurence.hpp"
2013-11-28 16:47:57 +01:00
#include "concordia/hash_generator.hpp"
#include "concordia/concordia_exception.hpp"
#include "divsufsort.h"
2013-11-28 16:47:57 +01:00
/*!
Class for searching the index with a sentence.
*/
using namespace std;
class IndexSearcher {
public:
explicit IndexSearcher();
/*! Destructor.
*/
virtual ~IndexSearcher();
boost::ptr_vector<SubstringOccurence> simpleSearch(
boost::shared_ptr<HashGenerator> hashGenerator,
boost::shared_ptr<std::vector<sauchar_t> > T,
boost::shared_ptr<std::vector<SUFFIX_MARKER_TYPE> > markers,
boost::shared_ptr<std::vector<saidx_t> > SA,
const string & pattern) throw(ConcordiaException);
2013-11-28 16:47:57 +01:00
private:
};
#endif