Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::DimensionValues::Interval Struct Reference

#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
 

Detailed Description

Definition at line 191 of file routing_filter_committables.h.

Member Function Documentation

◆ Add()

void operations_research::DimensionValues::Interval::Add ( const Interval & other)
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.

◆ AllIntegers()

static Interval operations_research::DimensionValues::Interval::AllIntegers ( )
inlinestatic

Returns an interval containing all integers: {kint64min, kint64max}.

Definition at line 240 of file routing_filter_committables.h.

◆ DecreaseMax()

bool operations_research::DimensionValues::Interval::DecreaseMax ( int64_t upper_bound)
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.

◆ IncreaseMin()

bool operations_research::DimensionValues::Interval::IncreaseMin ( int64_t lower_bound)
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.

◆ IntersectWith()

bool operations_research::DimensionValues::Interval::IntersectWith ( const Interval & other)
inline

Intersects this interval with the other, returns true iff the interval is nonempty.

Definition at line 218 of file routing_filter_committables.h.

◆ IsEmpty()

bool operations_research::DimensionValues::Interval::IsEmpty ( ) const
inline

Returns true iff the interval is empty.

Definition at line 203 of file routing_filter_committables.h.

◆ operator!=()

bool operations_research::DimensionValues::Interval::operator!= ( const Interval & other) const
inline

Tests inequality between intervals.

Definition at line 195 of file routing_filter_committables.h.

◆ operator==()

bool operations_research::DimensionValues::Interval::operator== ( const Interval & other) const
inline

Tests equality between intervals.

Definition at line 199 of file routing_filter_committables.h.

◆ Subtract()

void operations_research::DimensionValues::Interval::Subtract ( const Interval & other)
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.

Member Data Documentation

◆ max

int64_t operations_research::DimensionValues::Interval::max

Definition at line 193 of file routing_filter_committables.h.

◆ min

int64_t operations_research::DimensionValues::Interval::min

Definition at line 192 of file routing_filter_committables.h.


The documentation for this struct was generated from the following file: