/**
+ * @brief returns if we contain an exact interval.
+ * @param other the interval to check.
+ * @return @a true if we axactly contains the given interval.
+ *
+ * @note thsi differs from contain in the way, that we return only @a true
+ * iff we have the given interval in our list; not only cover it.
+ */
+bool Intervals::contains_exact(const Interval& other) const
+{
+ for(const_iterator it= begin();
+ it != end();
+ ++it)
+ {
+ if ( *it == other)
+ {
+ return true;
+ }
+ }
+ return false;
+} // eo Intervals::contains_exact(const Interval&)const
+
+
+/**
* @brief returns if we contain another interval combination.
* @param other the intervals to check.
* @return @a true if we cover the given intervals, too.
bool contains(const Interval& other) const;
bool contains(const Intervals& other) const;
+ bool contains_exact(const Interval& other) const;
+
bool operator==(const Intervals& other) const;
bool operator!=(const Intervals& other) const { return not (*this == other) ; }