Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0
Gecode::Iter::Ranges::AddRange< I > Class Template Reference

Range iterator for adding a single range to a range iterator. More...

#include <ranges-add.hpp>

Protected Attributes

i
 Iterator to which the range is to be added.
int r_min
 Minimum of range to be added.
int r_max
 Maximum of range to be added.
Protected Attributes inherited from Gecode::Iter::Ranges::MinMax
int mi
 Minimum of current range.
int ma
 Maximum of current range.

Constructors and initialization

 AddRange (void)
 Default constructor.
 AddRange (I &i, int min, int max)
 Initialize with ranges i and range min to max.
void init (I &i, int min, int max)
 Initialize with ranges i and range min to max.

Iteration control

void operator++ (void)
 Move iterator to next range (if possible)

Additional Inherited Members

 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

Detailed Description

template<class I>
class Gecode::Iter::Ranges::AddRange< I >

Range iterator for adding a single range to a range iterator.

Definition at line 42 of file ranges-add.hpp.

Constructor & Destructor Documentation

◆ AddRange() [1/2]

template<class I>
Gecode::Iter::Ranges::AddRange< I >::AddRange ( void )
inline

Default constructor.

Definition at line 90 of file ranges-add.hpp.

◆ AddRange() [2/2]

template<class I>
Gecode::Iter::Ranges::AddRange< I >::AddRange ( I & i,
int min,
int max )
inline

Initialize with ranges i and range min to max.

Definition at line 109 of file ranges-add.hpp.

Member Function Documentation

◆ init()

template<class I>
void Gecode::Iter::Ranges::AddRange< I >::init ( I & i,
int min,
int max )
inline

Initialize with ranges i and range min to max.

Definition at line 116 of file ranges-add.hpp.

◆ operator++()

template<class I>
void Gecode::Iter::Ranges::AddRange< I >::operator++ ( void )
inline

Move iterator to next range (if possible)

Definition at line 94 of file ranges-add.hpp.

Member Data Documentation

◆ i

template<class I>
I Gecode::Iter::Ranges::AddRange< I >::i
protected

Iterator to which the range is to be added.

Definition at line 45 of file ranges-add.hpp.

◆ r_min

template<class I>
int Gecode::Iter::Ranges::AddRange< I >::r_min
protected

Minimum of range to be added.

Definition at line 47 of file ranges-add.hpp.

◆ r_max

template<class I>
int Gecode::Iter::Ranges::AddRange< I >::r_max
protected

Maximum of range to be added.

Definition at line 49 of file ranges-add.hpp.


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