Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0

Value iterator for the intersection of two value iterators. More...

#include <values-inter.hpp>

Protected Member Functions

void next (void)
 Find next element from intersection.

Protected Attributes

i
 First iterator.
j
 Second iterator.

Constructors and initialization

 Inter (void)
 Default constructor.
 Inter (I &i, J &j)
 Initialize with values from i and j.
void init (I &i, J &j)
 Initialize with values from i and j.

Iteration control

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

Value access

int val (void) const
 Return current value.

Detailed Description

template<class I, class J>
class Gecode::Iter::Values::Inter< I, J >

Value iterator for the intersection of two value iterators.

Definition at line 43 of file values-inter.hpp.

Constructor & Destructor Documentation

◆ Inter() [1/2]

template<class I, class J>
Gecode::Iter::Values::Inter< I, J >::Inter ( void )
inline

Default constructor.

Definition at line 80 of file values-inter.hpp.

◆ Inter() [2/2]

template<class I, class J>
Gecode::Iter::Values::Inter< I, J >::Inter ( I & i,
J & j )
inline

Initialize with values from i and j.

Definition at line 101 of file values-inter.hpp.

Member Function Documentation

◆ next()

template<class I, class J>
void Gecode::Iter::Values::Inter< I, J >::next ( void )
inlineprotected

Find next element from intersection.

Definition at line 84 of file values-inter.hpp.

◆ init()

template<class I, class J>
void Gecode::Iter::Values::Inter< I, J >::init ( I & i,
J & j )
inline

Initialize with values from i and j.

Definition at line 95 of file values-inter.hpp.

◆ operator()()

template<class I, class J>
bool Gecode::Iter::Values::Inter< I, J >::operator() ( void ) const
inline

Test whether iterator is still at a value or done.

Definition at line 113 of file values-inter.hpp.

◆ operator++()

template<class I, class J>
void Gecode::Iter::Values::Inter< I, J >::operator++ ( void )
inline

Move iterator to next value (if possible)

Definition at line 107 of file values-inter.hpp.

◆ val()

template<class I, class J>
int Gecode::Iter::Values::Inter< I, J >::val ( void ) const
inline

Return current value.

Definition at line 119 of file values-inter.hpp.

Member Data Documentation

◆ i

template<class I, class J>
I Gecode::Iter::Values::Inter< I, J >::i
protected

First iterator.

Definition at line 46 of file values-inter.hpp.

◆ j

template<class I, class J>
J Gecode::Iter::Values::Inter< I, J >::j
protected

Second iterator.

Definition at line 48 of file values-inter.hpp.


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