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

Range iterator for the greatest lower bound. More...

#include <var-imp.hpp>

Constructors and initialization

 GlbRanges (void)
 Default constructor.
 
 GlbRanges (const T &x)
 Initialize with greatest lower bound ranges for set variable x.
 
void init (const T &x)
 Initialize with greatest lower bound ranges for set 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

template<class T>
class Gecode::Set::GlbRanges< T >

Range iterator for the greatest lower bound.

This class provides (by specialization) a range iterator for the greatest lower bounds of all set views.

Note that this template class serves only as a specification of the interface of the various specializations.

Definition at line 359 of file var-imp.hpp.

Constructor & Destructor Documentation

◆ GlbRanges() [1/2]

template<class T >
Gecode::Set::GlbRanges< T >::GlbRanges ( void )

Default constructor.

◆ GlbRanges() [2/2]

template<class T >
Gecode::Set::GlbRanges< T >::GlbRanges ( const T & x)

Initialize with greatest lower bound ranges for set variable x.

Member Function Documentation

◆ init()

template<class T >
void Gecode::Set::GlbRanges< T >::init ( const T & x)

Initialize with greatest lower bound ranges for set variable x.

◆ operator()()

template<class T >
bool Gecode::Set::GlbRanges< T >::operator() ( void ) const

Test whether iterator is still at a range or done.

◆ operator++()

template<class T >
void Gecode::Set::GlbRanges< T >::operator++ ( void )

Move iterator to next range (if possible)

◆ min()

template<class T >
int Gecode::Set::GlbRanges< T >::min ( void ) const

Return smallest value of range.

◆ max()

template<class T >
int Gecode::Set::GlbRanges< T >::max ( void ) const

Return largest value of range.

◆ width()

template<class T >
unsigned int Gecode::Set::GlbRanges< T >::width ( void ) const

Return width of range (distance between minimum and maximum)


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