2 * Copyright 2013, Rene Gollent, rene@gollent.com.
3 * Distributed under the terms of the MIT License.
9 #include <ObjectList.h>
10 #include <SupportDefs.h>
24 Range(int32 lowValue
, int32 highValue
)
33 class RangeList
: private BObjectList
<Range
>
40 status_t
AddRange(int32 lowValue
, int32 highValue
);
41 status_t
AddRange(const Range
& range
);
43 void RemoveRangeAt(int32 index
);
45 int32
CountRanges() const;
46 const Range
* RangeAt(int32 index
) const;
48 bool Contains(int32 value
) const;
51 void _CollapseOverlappingRanges(int32 startIndex
,
55 #endif // RANGE_LIST_H