Gecode::Set::LubRanges< OffsetSetView< View > > Class Template Reference
[Set views]
Inherits Gecode::Iter::Ranges::Offset< Gecode::Set::LubRanges< View > >.
Detailed Description
template<class View>
class Gecode::Set::LubRanges< OffsetSetView< View > >
Range iterator for least upper bound of offset set views
Definition at line 332 of file offset.icc.
Constructors and initialization | |
LubRanges (void) | |
Default constructor. | |
LubRanges (const OffsetSetView< View > &x) | |
Initialize with ranges for view x. | |
void | init (const OffsetSetView< View > &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 ranges (distance between minimum and maximum). |
Constructor & Destructor Documentation
Gecode::Set::LubRanges< OffsetSetView< View > >::LubRanges | ( | void | ) | [inline] |
Gecode::Set::LubRanges< OffsetSetView< View > >::LubRanges | ( | const OffsetSetView< View > & | x | ) | [inline] |
Member Function Documentation
void Gecode::Set::LubRanges< OffsetSetView< View > >::init | ( | const OffsetSetView< View > & | x | ) | [inline] |
bool Gecode::Set::LubRanges< OffsetSetView< View > >::operator() | ( | void | ) | const [inline] |
Test whether iterator is still at a range or done.
Reimplemented from Gecode::Iter::Ranges::Offset< I >.
Definition at line 379 of file offset.icc.
void Gecode::Set::LubRanges< OffsetSetView< View > >::operator++ | ( | void | ) | [inline] |
Move iterator to next range (if possible).
Reimplemented from Gecode::Iter::Ranges::Offset< I >.
Definition at line 383 of file offset.icc.
int Gecode::Set::LubRanges< OffsetSetView< View > >::min | ( | void | ) | const [inline] |
Return smallest value of range.
Reimplemented from Gecode::Iter::Ranges::Offset< I >.
Definition at line 387 of file offset.icc.
int Gecode::Set::LubRanges< OffsetSetView< View > >::max | ( | void | ) | const [inline] |
Return largest value of range.
Reimplemented from Gecode::Iter::Ranges::Offset< I >.
Definition at line 391 of file offset.icc.
unsigned int Gecode::Set::LubRanges< OffsetSetView< View > >::width | ( | void | ) | const [inline] |
Return width of ranges (distance between minimum and maximum).
Reimplemented from Gecode::Iter::Ranges::Offset< I >.
Definition at line 395 of file offset.icc.
The documentation for this class was generated from the following file:
- gecode/set/view/offset.icc (Revision: 5974)