Mercurial > hg > svcore
comparison base/Selection.h @ 1645:82596b4deef6 single-point
Add getDuratioN
author | Chris Cannam |
---|---|
date | Thu, 14 Mar 2019 13:11:30 +0000 |
parents | c01cbe41aeb5 |
children | 796ae7eecced |
comparison
equal
deleted
inserted
replaced
1644:513192aa9b03 | 1645:82596b4deef6 |
---|---|
47 virtual ~Selection(); | 47 virtual ~Selection(); |
48 | 48 |
49 bool isEmpty() const; | 49 bool isEmpty() const; |
50 sv_frame_t getStartFrame() const; | 50 sv_frame_t getStartFrame() const; |
51 sv_frame_t getEndFrame() const; | 51 sv_frame_t getEndFrame() const; |
52 sv_frame_t getDuration() const { return getEndFrame() - getStartFrame(); } | |
52 bool contains(sv_frame_t frame) const; | 53 bool contains(sv_frame_t frame) const; |
53 | 54 |
54 bool operator<(const Selection &) const; | 55 bool operator<(const Selection &) const; |
55 bool operator==(const Selection &) const; | 56 bool operator==(const Selection &) const; |
56 | 57 |