concordia-library/concordia/interval.hpp
rjawor e99eb77b28 anonymizing sentences
Former-commit-id: 5d8bd7e16258fda7c02a7cc0e1da589d73418f0d
2014-04-29 14:46:04 +02:00

38 lines
540 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