![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
Definition at line 225 of file routing_filter_committables.h.
#include <routing_filter_committables.h>
Public Member Functions | |
bool | operator!= (const Interval &other) const |
Tests inequality between intervals. | |
bool | operator== (const Interval &other) const |
Tests equality between intervals. | |
bool | IsEmpty () const |
Returns true iff the interval is empty. | |
bool | IncreaseMin (int64_t lower_bound) |
bool | DecreaseMax (int64_t upper_bound) |
bool | IntersectWith (const Interval &other) |
void | Add (const Interval &other) |
void | Subtract (const Interval &other) |
Static Public Member Functions | |
static Interval | AllIntegers () |
Returns an interval containing all integers: {kint64min, kint64max}. |
Public Attributes | |
int64_t | min |
int64_t | max |
|
inline |
A set addition, with intervals: adds other.min to the min, other.max to the max, with CapAdd().
Definition at line 259 of file routing_filter_committables.h.
|
inlinestatic |
Returns an interval containing all integers: {kint64min, kint64max}.
Definition at line 274 of file routing_filter_committables.h.
|
inline |
Decreases the max to be at most upper_bound, returns true iff the interval is nonempty.
Definition at line 246 of file routing_filter_committables.h.
|
inline |
Increases the min to be at least lower_bound, returns true iff the interval is nonempty.
Definition at line 240 of file routing_filter_committables.h.
|
inline |
Intersects this interval with the other, returns true iff the interval is nonempty.
Definition at line 252 of file routing_filter_committables.h.
|
inline |
Returns true iff the interval is empty.
Definition at line 237 of file routing_filter_committables.h.
|
inline |
Tests inequality between intervals.
Definition at line 229 of file routing_filter_committables.h.
|
inline |
Tests equality between intervals.
Definition at line 233 of file routing_filter_committables.h.
|
inline |
A set subtraction, with intervals: subtracts other.max from the min, other.min from the max, with CapSub().
Definition at line 267 of file routing_filter_committables.h.
int64_t operations_research::DimensionValues::Interval::max |
Definition at line 227 of file routing_filter_committables.h.
int64_t operations_research::DimensionValues::Interval::min |
Definition at line 226 of file routing_filter_committables.h.