14#include <OMMathExceptions.H>
20 class Ranges:
public std::vector<Range> {
22 typedef std::vector<Range> base;
29 for (
unsigned i=0;
i<size();++
i)
30 if ((*
this)[
i].intersect(
range)) {
40 for (
unsigned i=0;
i<size();++
i)
41 if ((*
this)[
i].contains(ind))
47 for (
unsigned i=0;
i<size();++
i)
48 if ((*
this)[
i].intersect(
range)) {
unsigned add(const Range &range)
unsigned find_index(const Range &range) const
unsigned find_index(const size_t ind) const