Gecode::Set::GlbDiffRanges< View > Class Template Reference
Range iterator for difference of greatest lower bound and cache More...
#include <gecode/set/view.hpp>
Public Member Functions | |
| GlbDiffRanges (const CachedView< View > &x) | |
| Constructor. | |
| Diff (void) | |
| Default constructor. | |
| void | init (GlbRanges< View > &i, BndSetRanges &j) |
| Initialize with iterator i and j. | |
| 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 Attributes | |
| GlbRanges< View > | gr |
| Lower bound iterator. | |
| BndSetRanges | cr |
| Cached lower bound. | |
| Protected Attributes inherited from Gecode::Iter::Ranges::Diff< GlbRanges< View >, BndSetRanges > | |
| GlbRanges< View > | i |
| Iterator from which to subtract. | |
| BndSetRanges | j |
| Iterator to be subtracted. | |
| Protected Attributes inherited from Gecode::Iter::Ranges::MinMax | |
| int | mi |
| Minimum of current range. | |
| int | ma |
| Maximum of current range. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Gecode::Iter::Ranges::MinMax | |
| void | finish (void) |
| Set range such that iteration stops | |
Detailed Description
template<class View>
class Gecode::Set::GlbDiffRanges< View >
class Gecode::Set::GlbDiffRanges< View >
Range iterator for difference of greatest lower bound and cache
Constructor & Destructor Documentation
◆ GlbDiffRanges()
template<class View>
|
inline |
Constructor.
Definition at line 393 of file cached.hpp.
Member Data Documentation
◆ gr
template<class View>
|
protected |
◆ cr
template<class View>
|
protected |
The documentation for this class was generated from the following files:
- gecode/set/view.hpp
- gecode/set/view/cached.hpp
