|
ant
A2 ant: class-based analysis framework
|
#include <piecewise_interval.h>
Inheritance diagram for ant::PiecewiseInterval< T >:
Collaboration diagram for ant::PiecewiseInterval< T >:Public Types | |
| using | interval_t = ant::interval< T > |
Public Member Functions | |
| bool | Contains (const T &x) const |
| Test if any interval contains x. More... | |
| void | Compact () |
| Simplify the list by joining intervals that overlap May reduce the number of intervals in the list and speed up following Contains() checks a bit. More... | |
| interval_t | EnclosingInterval () const |
| bool | operator== (const PiecewiseInterval< T > &rhs) const |
| Check equality. Two PiecewiseIntervals are equal if they contain exactly the same intervals. More... | |
| T | Area () const |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const PiecewiseInterval &o) |
| std::istream & | operator>> (std::istream &out, PiecewiseInterval< T > &t) |
| using ant::PiecewiseInterval< T >::interval_t = ant::interval<T> |
|
inline |
|
inline |
Simplify the list by joining intervals that overlap May reduce the number of intervals in the list and speed up following Contains() checks a bit.
|
inline |
Test if any interval contains x.
| x | Value to check |
|
inline |
|
inline |
Check equality. Two PiecewiseIntervals are equal if they contain exactly the same intervals.
| rhs |
|
friend |
|
friend |