1 #ifndef FILESEQ_FRAMESET_H_
2 #define FILESEQ_FRAMESET_H_
4 #include "ranges/ranges.h"
24 struct RangePatternMatch;
31 typedef std::vector<Frame> Frames;
69 swap(first.m_frameData, second.m_frameData);
76 std::string
string()
const;
78 operator std::string()
const {
return string(); }
80 friend std::ostream& operator<< (std::ostream& stream,
const FrameSet& fs) {
158 void handleMatch(
const internal::RangePatternMatch* match,
Status* ok);
163 internal::FrameSetData* m_frameData;
Definition: sequence.h:48
Definition: frameset.h:39
void frames(Frames &frames) const
Definition: frameset.cpp:198
std::string string() const
The string representation of the frame range.
Definition: frameset.cpp:178
size_t index(Frame frame) const
Definition: frameset.cpp:186
RangesIterator iterFrames() const
Definition: frameset.cpp:218
FrameSet()
Definition: frameset.cpp:14
bool hasFrame(Frame frame) const
HasFrame returns true if the FrameSet contains the given frame value.
Definition: frameset.cpp:226
std::string frameRange(int pad=0) const
Definition: frameset.cpp:238
FrameSet normalized() const
Normalize returns a new sorted and compacted FrameSet.
Definition: frameset.cpp:285
size_t length() const
The number of frames in the range.
Definition: frameset.cpp:182
Frame frame(size_t index, Status *ok=nullptr) const
Definition: frameset.cpp:190
FrameSet inverted() const
Definition: frameset.cpp:250
Frame start() const
The first frame of the range.
Definition: frameset.cpp:230
bool isValid() const
Return whether the FrameSet is properly parsed and valid as a range.
Definition: frameset.cpp:169
std::string invertedFrameRange(int pad) const
Definition: frameset.cpp:268
Frame end() const
The last frame in the range.
Definition: frameset.cpp:234