![]() |
Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
|
Represents a closed interval [start, end]. We must have start <= end.
Definition at line 35 of file sorted_interval_list.h.
#include <sorted_interval_list.h>
Classes | |
| class | Iterator |
Public Member Functions | |
| ClosedInterval () | |
| ClosedInterval (int64_t v) | |
| ClosedInterval (int64_t s, int64_t e) | |
| std::string | DebugString () const |
| constexpr bool | operator== (const ClosedInterval &other) const |
| constexpr bool | operator< (const ClosedInterval &other) const |
Public Attributes | |
| int64_t | start = 0 |
| int64_t | end = 0 |
Friends | |
| template<typename H> | |
| H | AbslHashValue (H h, const ClosedInterval &interval) |
|
inline |
Definition at line 55 of file sorted_interval_list.h.
|
inlineexplicit |
Definition at line 56 of file sorted_interval_list.h.
|
inline |
Definition at line 57 of file sorted_interval_list.h.
| std::string operations_research::ClosedInterval::DebugString | ( | ) | const |
Definition at line 36 of file sorted_interval_list.cc.
|
inlineconstexpr |
Definition at line 70 of file sorted_interval_list.h.
|
inlineconstexpr |
Definition at line 63 of file sorted_interval_list.h.
|
friend |
Definition at line 75 of file sorted_interval_list.h.
| int64_t operations_research::ClosedInterval::end = 0 |
Definition at line 80 of file sorted_interval_list.h.
| int64_t operations_research::ClosedInterval::start = 0 |
Definition at line 79 of file sorted_interval_list.h.