17#ifndef OR_TOOLS_UTIL_RANGE_QUERY_FUNCTION_H_
18#define OR_TOOLS_UTIL_RANGE_QUERY_FUNCTION_H_
44 int64 interval_end)
const = 0;
49 int64 interval_end)
const = 0;
virtual int64 Query(int64 argument) const =0
virtual ~RangeIntToIntFunction()=default
virtual int64 RangeFirstInsideInterval(int64 range_begin, int64 range_end, int64 interval_begin, int64 interval_end) const =0
virtual int64 RangeLastInsideInterval(int64 range_begin, int64 range_end, int64 interval_begin, int64 interval_end) const =0
virtual int64 RangeMax(int64 from, int64 to) const =0
virtual int64 RangeMin(int64 from, int64 to) const =0
virtual int64 RangeMaxArgument(int64 from, int64 to) const =0
virtual int64 RangeMinArgument(int64 from, int64 to) const =0
virtual ~RangeMinMaxIndexFunction()=default
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...
RangeMinMaxIndexFunction * MakeCachedRangeMinMaxIndexFunction(const std::function< int64(int64)> &f, int64 domain_start, int64 domain_end)
RangeIntToIntFunction * MakeBareIntToIntFunction(std::function< int64(int64)> f)
RangeIntToIntFunction * MakeCachedIntToIntFunction(const std::function< int64(int64)> &f, int64 domain_start, int64 domain_end)