![]() |
Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
|
#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 |
Definition at line 191 of file routing_filter_committables.h.
|
inline |
A set addition, with intervals: adds other.min to the min, other.max to the max, with CapAdd().
Definition at line 225 of file routing_filter_committables.h.
|
inlinestatic |
Returns an interval containing all integers: {kint64min, kint64max}.
Definition at line 240 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 212 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 206 of file routing_filter_committables.h.
|
inline |
Intersects this interval with the other, returns true iff the interval is nonempty.
Definition at line 218 of file routing_filter_committables.h.
|
inline |
Returns true iff the interval is empty.
Definition at line 203 of file routing_filter_committables.h.
|
inline |
Tests inequality between intervals.
Definition at line 195 of file routing_filter_committables.h.
|
inline |
Tests equality between intervals.
Definition at line 199 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 233 of file routing_filter_committables.h.
int64_t operations_research::DimensionValues::Interval::max |
Definition at line 193 of file routing_filter_committables.h.
int64_t operations_research::DimensionValues::Interval::min |
Definition at line 192 of file routing_filter_committables.h.