concordia-library/concordia/interval.hpp
rjawor e02bbaa0fa getTmMatches
Former-commit-id: 94aa3db2db88195c61c6ac70006c0e1d743dc854
2015-04-14 20:14:30 +02:00

40 lines
615 B
C++

#ifndef INTERVAL_HDR
#define INTERVAL_HDR
#include "concordia/common/config.hpp"
/*!
Class representing word interval.
*/
using namespace std;
class Interval {
public:
explicit Interval(const SUFFIX_MARKER_TYPE start, const SUFFIX_MARKER_TYPE end);
/*! Destructor.
*/
virtual ~Interval();
bool intersects(Interval & interval);
SUFFIX_MARKER_TYPE getLength();
SUFFIX_MARKER_TYPE getStart() const {
return _start;
}
SUFFIX_MARKER_TYPE getEnd() const {
return _end;
}
private:
SUFFIX_MARKER_TYPE _start;
SUFFIX_MARKER_TYPE _end;
};
#endif