concordia-library/concordia/substring_occurence.hpp
rjawor e8ea5881a5 lcp search
Former-commit-id: 925a5de8bc33256b594c369907f202e29f809f47
2014-05-15 22:20:31 +02:00

38 lines
661 B
C++

#ifndef SUBSTRING_OCCURENCE_HDR
#define SUBSTRING_OCCURENCE_HDR
#include "concordia/common/config.hpp"
#include <string>
/*!
Class representing occurence of a searched substring.
*/
using namespace std;
class SubstringOccurence {
public:
explicit SubstringOccurence(const SUFFIX_MARKER_TYPE & id,
const SUFFIX_MARKER_TYPE & offset);
/*! Destructor.
*/
virtual ~SubstringOccurence();
SUFFIX_MARKER_TYPE getId() const {
return _id;
}
SUFFIX_MARKER_TYPE getOffset() const {
return _offset;
}
private:
SUFFIX_MARKER_TYPE _id;
SUFFIX_MARKER_TYPE _offset;
};
#endif