Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Values::BitSet< BS > Class Template Reference

Value iterator for values in a bitset. More...

#include <values-bitset.hpp>

Protected Member Functions

void move (void)
 Move to next set bit. More...
 

Protected Attributes

const BS & bs
 Bitset. More...
 
unsigned int cur
 Current value. More...
 
unsigned int limit
 Limit value. More...
 

Constructors and initialization

 BitSet (const BS &bs)
 Initialize with bitset bs. More...
 
 BitSet (const BS &bs, int n, int m)
 Initialize with bitset bs and start n and stop m. 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 BS>
class Gecode::Iter::Values::BitSet< BS >

Value iterator for values in a bitset.

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

Constructor & Destructor Documentation

template<class BS >
Gecode::Iter::Values::BitSet< BS >::BitSet ( const BS &  bs)
inline

Initialize with bitset bs.

Definition at line 83 of file values-bitset.hpp.

template<class BS >
Gecode::Iter::Values::BitSet< BS >::BitSet ( const BS &  bs,
int  n,
int  m 
)
inline

Initialize with bitset bs and start n and stop m.

Definition at line 89 of file values-bitset.hpp.

Member Function Documentation

template<class BS >
void Gecode::Iter::Values::BitSet< BS >::move ( void  )
protected

Move to next set bit.

template<class BS >
bool Gecode::Iter::Values::BitSet< BS >::operator() ( void  ) const
inline

Test whether iterator is still at a value or done.

Definition at line 102 of file values-bitset.hpp.

template<class BS >
void Gecode::Iter::Values::BitSet< BS >::operator++ ( void  )
inline

Move iterator to next value (if possible)

Definition at line 97 of file values-bitset.hpp.

template<class BS >
int Gecode::Iter::Values::BitSet< BS >::val ( void  ) const
inline

Return current value.

Definition at line 108 of file values-bitset.hpp.

Member Data Documentation

template<class BS >
const BS& Gecode::Iter::Values::BitSet< BS >::bs
protected

Bitset.

Definition at line 49 of file values-bitset.hpp.

template<class BS >
unsigned int Gecode::Iter::Values::BitSet< BS >::cur
protected

Current value.

Definition at line 51 of file values-bitset.hpp.

template<class BS >
unsigned int Gecode::Iter::Values::BitSet< BS >::limit
protected

Limit value.

Definition at line 53 of file values-bitset.hpp.


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