Represents a closed interval [start, end]. We must have start <= end.
Definition at line 29 of file sorted_interval_list.h.
Public Member Functions | |
| ClosedInterval () | |
| ClosedInterval (int64 s, int64 e) | |
| std::string | DebugString () const |
| bool | operator== (const ClosedInterval &other) const |
| bool | operator< (const ClosedInterval &other) const |
| Because we mainly manipulate vector of disjoint intervals, we only need to sort by the start. More... | |
Public Attributes | |
| int64 | start = 0 |
| int64 | end = 0 |
|
inline |
Definition at line 30 of file sorted_interval_list.h.
|
inline |
Definition at line 31 of file sorted_interval_list.h.
| std::string operations_research::ClosedInterval::DebugString | ( | ) | const |
|
inline |
Because we mainly manipulate vector of disjoint intervals, we only need to sort by the start.
We do not care about the order in which interval with the same start appear since they will always be merged into one interval.
Definition at line 41 of file sorted_interval_list.h.
|
inline |
Definition at line 34 of file sorted_interval_list.h.
| int64 operations_research::ClosedInterval::end = 0 |
Definition at line 46 of file sorted_interval_list.h.
| int64 operations_research::ClosedInterval::start = 0 |
Definition at line 45 of file sorted_interval_list.h.