concordia-library/concordia/interval.hpp
rjawor 0d4bdf12de removed using namespace std
Former-commit-id: dbb5129e1f94d83eca887ada0f89d6bb45250f1e
2015-04-15 14:14:10 +02:00

39 lines
615 B
C++

#ifndef INTERVAL_HDR
#define INTERVAL_HDR
#include "concordia/common/config.hpp"
/*!
Class representing word interval.
*/
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