C++ Reference: class IntervalsRepository
Note: This documentation is automatically generated.
This class maintains a set of intervals which correspond to three integer variables (start, end and size). It automatically registers with the PrecedencesPropagator the relation between the bounds of each interval and provides many helper functions to add precedences relation between intervals.Method | |
---|---|
AllIntervals | Return type: Utility function that returns a vector will all intervals. |
CreateInterval | Return type: Arguments: Functions to add a new interval to the repository. If add_linear_relation is true, then we also link start, size and end. - If size == kNoIntegerVariable, then the size is fixed to fixed_size. - If is_present != kNoLiteralIndex, then this is an optional interval. |
CreateInterval | Return type: Arguments: |
End | Return type: Arguments: |
EndVar | Return type: Arguments: |
GetOrCreateHelper | Return type: Arguments: Returns a SchedulingConstraintHelper corresponding to the given variables. Note that the order of interval in the helper will be the same. |
IntervalsRepository | Return type: Arguments: |
IsAbsent | Return type: Arguments: |
IsOptional | Return type: Arguments: Returns whether or not a interval is optional and the associated literal. |
IsPresent | Return type: Arguments: |
MaxSize | Return type: Arguments: Return the maximum size of the given IntervalVariable. |
MinSize | Return type: Arguments: Return the minimum size of the given IntervalVariable. |
NumIntervals | Return type: Returns the current number of intervals in the repository. The interval will always be identified by an integer in [0, num_intervals). |
PresenceLiteral | Return type: Arguments: |
Size | Return type: Arguments: The 3 integer variables associated to a interval. Fixed size intervals will have a kNoIntegerVariable as size. Note: For an optional interval, the start/end variables are propagated asssuming the interval is present. Because of that, these variables can cross each other or have an empty domain. If any of this happen, then the PresenceLiteral() of this interval will be propagated to false. |
SizeVar | Return type: Arguments: Deprecated. |
Start | Return type: Arguments: |
StartVar | Return type: Arguments: |