Generated on Thu Apr 5 2018 19:44:19 for Gecode by doxygen 1.8.13
Gecode::Int::IntVarImpFwd Class Reference

Range iterator for ranges of integer variable implementation. More...

#include <var-imp.hpp>

Constructors and initialization

 IntVarImpFwd (void)
 Default constructor. More...
 
 IntVarImpFwd (const IntVarImp *x)
 Initialize with ranges from variable implementation x. More...
 
void init (const IntVarImp *x)
 Initialize with ranges from variable implementation x. More...
 

Iteration control

bool operator() (void) const
 Test whether iterator is still at a range or done. More...
 
void operator++ (void)
 Move iterator to next range (if possible) More...
 

Range access

int min (void) const
 Return smallest value of range. More...
 
int max (void) const
 Return largest value of range. More...
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum) More...
 

Detailed Description

Range iterator for ranges of integer variable implementation.

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

Constructor & Destructor Documentation

◆ IntVarImpFwd() [1/2]

Gecode::Int::IntVarImpFwd::IntVarImpFwd ( void  )
inline

Default constructor.

Definition at line 431 of file int.hpp.

◆ IntVarImpFwd() [2/2]

Gecode::Int::IntVarImpFwd::IntVarImpFwd ( const IntVarImp x)
inline

Initialize with ranges from variable implementation x.

Definition at line 433 of file int.hpp.

Member Function Documentation

◆ init()

void Gecode::Int::IntVarImpFwd::init ( const IntVarImp x)
inline

Initialize with ranges from variable implementation x.

Definition at line 436 of file int.hpp.

◆ operator()()

bool Gecode::Int::IntVarImpFwd::operator() ( void  ) const
inline

Test whether iterator is still at a range or done.

Definition at line 441 of file int.hpp.

◆ operator++()

void Gecode::Int::IntVarImpFwd::operator++ ( void  )
inline

Move iterator to next range (if possible)

Definition at line 445 of file int.hpp.

◆ min()

int Gecode::Int::IntVarImpFwd::min ( void  ) const
inline

Return smallest value of range.

Definition at line 450 of file int.hpp.

◆ max()

int Gecode::Int::IntVarImpFwd::max ( void  ) const
inline

Return largest value of range.

Definition at line 454 of file int.hpp.

◆ width()

unsigned int Gecode::Int::IntVarImpFwd::width ( void  ) const
inline

Return width of range (distance between minimum and maximum)

Definition at line 458 of file int.hpp.


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