Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::Set::GlbDiffRanges< View > Class Template Reference

Range iterator for difference of greatest lower bound and cache More...

#include <view.hpp>

Public Member Functions

 GlbDiffRanges (const CachedView< View > &x)
 Constructor.
 
- Public Member Functions inherited from Gecode::Iter::Ranges::Diff< GlbRanges< View >, BndSetRanges >
 Diff (void)
 Default constructor.
 
 Diff (GlbRanges< View > &i, BndSetRanges &j)
 Initialize with iterator i and j.
 
void init (GlbRanges< View > &i, BndSetRanges &j)
 Initialize with iterator i and j.
 
void operator++ (void)
 Move iterator to next range (if possible)
 
- Public Member Functions inherited from Gecode::Iter::Ranges::MinMax
 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 >

Range iterator for difference of greatest lower bound and cache

Definition at line 1137 of file view.hpp.

Constructor & Destructor Documentation

◆ GlbDiffRanges()

template<class View >
Gecode::Set::GlbDiffRanges< View >::GlbDiffRanges ( const CachedView< View > & x)
inline

Constructor.

Definition at line 393 of file cached.hpp.

Member Data Documentation

◆ gr

template<class View >
GlbRanges<View> Gecode::Set::GlbDiffRanges< View >::gr
protected

Lower bound iterator.

Definition at line 1141 of file view.hpp.

◆ cr

template<class View >
BndSetRanges Gecode::Set::GlbDiffRanges< View >::cr
protected

Cached lower bound.

Definition at line 1143 of file view.hpp.


The documentation for this class was generated from the following files: