Mercurial > hg > svcore
comparison base/Selection.h @ 925:3efc20c59a94 tonioni
Add comment about meaning of start and end frame of selection
author | Chris Cannam |
---|---|
date | Mon, 16 Jun 2014 11:28:45 +0100 |
parents | 70a232b1f12a |
children | d03b3d956358 |
comparison
equal
deleted
inserted
replaced
924:85879408f665 | 925:3efc20c59a94 |
---|---|
19 #include <cstddef> | 19 #include <cstddef> |
20 #include <set> | 20 #include <set> |
21 | 21 |
22 #include "XmlExportable.h" | 22 #include "XmlExportable.h" |
23 | 23 |
24 /** | |
25 * A selection object simply represents a range in time, via start and | |
26 * end frame. | |
27 * | |
28 * The end frame is the index of the frame just *after* the end of the | |
29 * selection. For example a selection of length 10 frames starting at | |
30 * time 0 will have start frame 0 and end frame 10. This will be | |
31 * contiguous with (rather than overlapping with) a selection that | |
32 * starts at frame 10. | |
33 * | |
34 * Any selection with equal start and end frames is empty, | |
35 * representing "no selection". All empty selections are equal under | |
36 * the comparison operators. The default constructor makes an empty | |
37 * selection with start and end frames equal to zero. | |
38 */ | |
24 class Selection | 39 class Selection |
25 { | 40 { |
26 public: | 41 public: |
27 Selection(); | 42 Selection(); |
28 Selection(size_t startFrame, size_t endFrame); | 43 Selection(size_t startFrame, size_t endFrame); |