Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
Gecode::SetVarLubRanges Class Reference

Iterator for the least upper bound ranges of a set variable. More...

#include <set.hh>

Constructors and initialization

 SetVarLubRanges (void)
 Default constructor.
 
 SetVarLubRanges (const SetVar &x)
 Initialize to iterate ranges of variable 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)
 

Detailed Description

Iterator for the least upper bound ranges of a set variable.

Definition at line 302 of file set.hh.

Constructor & Destructor Documentation

◆ SetVarLubRanges() [1/2]

Gecode::SetVarLubRanges::SetVarLubRanges ( void )
inline

Default constructor.

Definition at line 130 of file set.hpp.

◆ SetVarLubRanges() [2/2]

Gecode::SetVarLubRanges::SetVarLubRanges ( const SetVar & x)
inline

Initialize to iterate ranges of variable x.

Definition at line 133 of file set.hpp.

Member Function Documentation

◆ operator()()

bool Gecode::SetVarLubRanges::operator() ( void ) const
inline

Test whether iterator is still at a range or done.

Definition at line 138 of file set.hpp.

◆ operator++()

void Gecode::SetVarLubRanges::operator++ ( void )
inline

Move iterator to next range (if possible)

Definition at line 142 of file set.hpp.

◆ min()

int Gecode::SetVarLubRanges::min ( void ) const
inline

Return smallest value of range.

Definition at line 146 of file set.hpp.

◆ max()

int Gecode::SetVarLubRanges::max ( void ) const
inline

Return largest value of range.

Definition at line 150 of file set.hpp.

◆ width()

unsigned int Gecode::SetVarLubRanges::width ( void ) const
inline

Return width of range (distance between minimum and maximum)

Definition at line 154 of file set.hpp.


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