2014-02-20 10:49:17 +01:00
|
|
|
#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,
|
2014-05-15 22:20:31 +02:00
|
|
|
const SUFFIX_MARKER_TYPE & offset);
|
2014-02-20 10:49:17 +01:00
|
|
|
|
|
|
|
/*! Destructor.
|
|
|
|
*/
|
|
|
|
virtual ~SubstringOccurence();
|
|
|
|
|
|
|
|
SUFFIX_MARKER_TYPE getId() const {
|
|
|
|
return _id;
|
|
|
|
}
|
|
|
|
|
2014-05-15 22:20:31 +02:00
|
|
|
SUFFIX_MARKER_TYPE getOffset() const {
|
2014-02-20 10:49:17 +01:00
|
|
|
return _offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
SUFFIX_MARKER_TYPE _id;
|
|
|
|
|
2014-05-15 22:20:31 +02:00
|
|
|
SUFFIX_MARKER_TYPE _offset;
|
2014-02-20 10:49:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|