Gecode::Int::ViewRanges< NegBoolView > Class Reference
Range iterator for negated Boolean variable views More...
#include <gecode/int/view/neg-bool.hpp>
Constructors and initialization | |
| ViewRanges (void) | |
| Default constructor. | |
| ViewRanges (const NegBoolView &x) | |
| Initialize with ranges for view x. | |
| void | init (const NegBoolView &x) |
| Initialize with ranges for view x. | |
Iteration control | |
| bool | operator() (void) const |
| Test whether iterator is still at a range or done. | |
| void | operator++ (void) |
| Move iterator to next range (if possible). | |
Range access | |
| int | min (void) const |
| Return smallest value of range. | |
| int | max (void) const |
| Return largest value of range. | |
| unsigned int | width (void) const |
| Return width of range (distance between minimum and maximum). | |
Additional Inherited Members | |
| Singleton (void) | |
| Default constructor. | |
| Singleton (int min, int max) | |
| Initialize with range min to max. | |
| void | init (int min, int max) |
| Initialize with range min to max. | |
| void | operator++ (void) |
| Move iterator to next range (if possible). | |
| MinMax (void) | |
| Default constructor. | |
| MinMax (int min, int max) | |
| Initialize with range min to max. | |
| bool | operator() (void) const |
| Test whether iterator is still at a range or done. | |
| int | min (void) const |
| Return smallest value of range. | |
| int | max (void) const |
| Return largest value of range. | |
| unsigned int | width (void) const |
| Return width of range (distance between minimum and maximum). | |
| Protected Member Functions inherited from Gecode::Iter::Ranges::MinMax | |
| void | finish (void) |
| Set range such that iteration stops | |
| Protected Attributes inherited from Gecode::Iter::Ranges::MinMax | |
| int | mi |
| Minimum of current range. | |
| int | ma |
| Maximum of current range. | |
Detailed Description
Range iterator for negated Boolean variable views
Definition at line 225 of file neg-bool.hpp.
Constructor & Destructor Documentation
◆ ViewRanges() [1/2]
|
inline |
Default constructor.
Definition at line 239 of file neg-bool.hpp.
◆ ViewRanges() [2/2]
|
inline |
Initialize with ranges for view x.
Definition at line 242 of file neg-bool.hpp.
Member Function Documentation
◆ init()
|
inline |
Initialize with ranges for view x.
Definition at line 246 of file neg-bool.hpp.
◆ operator()()
| bool Gecode::Int::ViewRanges< NegBoolView >::operator() | ( | void | ) | const |
Test whether iterator is still at a range or done.
◆ operator++()
| void Gecode::Int::ViewRanges< NegBoolView >::operator++ | ( | void | ) |
Move iterator to next range (if possible).
◆ min()
| int Gecode::Int::ViewRanges< NegBoolView >::min | ( | void | ) | const |
Return smallest value of range.
◆ max()
| int Gecode::Int::ViewRanges< NegBoolView >::max | ( | void | ) | const |
Return largest value of range.
◆ width()
| unsigned int Gecode::Int::ViewRanges< NegBoolView >::width | ( | void | ) | const |
Return width of range (distance between minimum and maximum).
The documentation for this class was generated from the following file:
- gecode/int/view/neg-bool.hpp
