Generated on Sat Feb 7 2015 02:01:52 for Gecode by doxygen 1.8.9.1
Gecode::Set::Int::OverweightValues< I > Class Template Reference

Value Iterator for values above a certain weight. More...

#include <weights.hpp>

Constructors and initialization

 OverweightValues (void)
 Default constructor. More...
 
 OverweightValues (int t, SharedArray< int > &elements0, SharedArray< int > &weights0, I &i)
 Initialize with elements/weights pairs, threshold t and iterator i. More...
 
void init (int t, SharedArray< int > &elements0, SharedArray< int > &weights0, I &i)
 Initialize with elements/weights pairs, threshold t and iterator i. More...
 

Iteration control

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

Value access

int val (void) const
 Return current value. More...
 

Detailed Description

template<class I>
class Gecode::Set::Int::OverweightValues< I >

Value Iterator for values above a certain weight.

Definition at line 49 of file weights.hpp.

Constructor & Destructor Documentation

template<class I >
Gecode::Set::Int::OverweightValues< I >::OverweightValues ( void  )
inline

Default constructor.

Definition at line 109 of file weights.hpp.

template<class I >
Gecode::Set::Int::OverweightValues< I >::OverweightValues ( int  t,
SharedArray< int > &  elements0,
SharedArray< int > &  weights0,
I &  i 
)
inline

Initialize with elements/weights pairs, threshold t and iterator i.

Definition at line 113 of file weights.hpp.

Member Function Documentation

template<class I >
void Gecode::Set::Int::OverweightValues< I >::init ( int  t,
SharedArray< int > &  elements0,
SharedArray< int > &  weights0,
I &  i 
)
inline

Initialize with elements/weights pairs, threshold t and iterator i.

Definition at line 126 of file weights.hpp.

template<class I >
bool Gecode::Set::Int::OverweightValues< I >::operator() ( void  ) const
inline

Test whether iterator is still at a value or done.

Definition at line 138 of file weights.hpp.

template<class I >
void Gecode::Set::Int::OverweightValues< I >::operator++ ( void  )
inline

Move iterator to next value (if possible)

Definition at line 142 of file weights.hpp.

template<class I >
int Gecode::Set::Int::OverweightValues< I >::val ( void  ) const
inline

Return current value.

Definition at line 146 of file weights.hpp.


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