concordia-library/concordia/interval.hpp
rjawor 655087582e anubis search stub
Former-commit-id: 41cf0c8811767219f6f58bc06d9729d724269e73
2014-03-11 14:32:10 +01:00

38 lines
539 B
C++

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