template <class T>
class Ranges
Defined at line 24 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
Public Methods
size_t Add (T start, T end)
Add (start,end) to this object, coalescing overlaps as appropriate.
Returns the number of stored ranges, post coalescing.
Defined at line 66 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
size_t size ()
Return the number of disjoint ranges.
Defined at line 126 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
T start (size_t i)
Return the "i"'th range's start
&
end (0-based).
Defined at line 131 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
T end (size_t i)
Defined at line 136 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
const std::pair<T, T> & back ()
Return the last range.
Defined at line 141 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
bool contains (size_t i, const T & entry)
check to see that `entry` is within [start, end) for the given range.
Defined at line 146 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
bool empty ()
Shorthand for size() == 0.
Defined at line 151 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
void clear ()
Clear all ranges.
Defined at line 156 of file ../../src/media/third_party/chromium_media/media/base/ranges.h
Ranges<T> IntersectionWith (const Ranges<T> & other)
Computes the intersection between this range and |other|.
Defined at line 161 of file ../../src/media/third_party/chromium_media/media/base/ranges.h