Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0
Gecode::Set::LubRanges< SetVarImp * > Class Reference

Range iterator for the least upper bound of a set variable implementation. More...

#include <set.hpp>

Constructors and initialization

 LubRanges (void)
 Default constructor.
 LubRanges (const SetVarImp *)
 Initialize with ranges for variable implementation x.
void init (const SetVarImp *)
 Initialize with ranges for variable implementation 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)

Additional Inherited Members

 BndSetRanges (void)
 Default constructor.
 BndSetRanges (const BndSet &s)
 Initialize with BndSet s.
void init (const BndSet &s)
 Initialize with BndSet s.
 RangeList (void)
 Default constructor.
 RangeList (const Gecode::RangeList *s)
 Initialize with range list s.
void init (const Gecode::RangeList *s)
 Initialize with range list s.
bool operator() (void) const
 Test whether iterator is still at a range or done.
void operator++ (void)
 Move iterator to next range (if possible)
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 inherited from Gecode::Iter::Ranges::RangeList
const Gecode::RangeListc
 Current range.

Detailed Description

Range iterator for the least upper bound of a set variable implementation.

This class provides (by specialization) a range iterator for the least upper bounds of set variable implementations.

Definition at line 444 of file set.hpp.

Constructor & Destructor Documentation

◆ LubRanges() [1/2]

Gecode::Set::LubRanges< SetVarImp * >::LubRanges ( void )
inline

Default constructor.

Definition at line 458 of file set.hpp.

◆ LubRanges() [2/2]

Gecode::Set::LubRanges< SetVarImp * >::LubRanges ( const SetVarImp * x)
inline

Initialize with ranges for variable implementation x.

Definition at line 461 of file set.hpp.

Member Function Documentation

◆ init()

void Gecode::Set::LubRanges< SetVarImp * >::init ( const SetVarImp * x)
inline

Initialize with ranges for variable implementation x.

Definition at line 465 of file set.hpp.

◆ operator()()

bool Gecode::Set::LubRanges< SetVarImp * >::operator() ( void ) const

Test whether iterator is still at a range or done.

◆ operator++()

void Gecode::Set::LubRanges< SetVarImp * >::operator++ ( void )

Move iterator to next range (if possible)

◆ min()

int Gecode::Set::LubRanges< SetVarImp * >::min ( void ) const

Return smallest value of range.

◆ max()

int Gecode::Set::LubRanges< SetVarImp * >::max ( void ) const

Return largest value of range.

◆ width()

unsigned int Gecode::Set::LubRanges< SetVarImp * >::width ( void ) const

Return width of range (distance between minimum and maximum)


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