Generated on Tue Sep 25 2012 20:53:32 for Gecode by doxygen 1.7.5
Gecode::Iter::Values::BitSet Class Reference

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

#include <values-bitset.hpp>

List of all members.

Protected Member Functions

void move (void)
 Move to next set bit.

Protected Attributes

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

Constructors and initialization

 BitSet (const BS &bs)
 Initialize with bitset bs.
 BitSet (const BS &bs, int n, int m)
 Initialize with bitset bs and start n and stop m.

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

Value iterator for values in a bitset.


Constructor & Destructor Documentation

Gecode::Iter::Values::BitSet::BitSet ( const BS &  bs) [inline]

Initialize with bitset bs.

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

Gecode::Iter::Values::BitSet::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

void Gecode::Iter::Values::BitSet::move ( void  ) [protected]

Move to next set bit.

bool Gecode::Iter::Values::BitSet::operator() ( void  ) const [inline]

Test whether iterator is still at a value or done.

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

void Gecode::Iter::Values::BitSet::operator++ ( void  ) [inline]

Move iterator to next value (if possible)

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

int Gecode::Iter::Values::BitSet::val ( void  ) const [inline]

Return current value.

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


Member Data Documentation

const BS& Gecode::Iter::Values::BitSet::bs [protected]

Bitset.

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

unsigned int Gecode::Iter::Values::BitSet::cur [protected]

Current value.

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

unsigned int Gecode::Iter::Values::BitSet::limit [protected]

Limit value.

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


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