Generated on Sat Oct 24 2015 23:20:15 for Gecode by doxygen 1.8.9.1
Gecode::Set::Rel::CharacteristicSets::CSIter Class Reference

Value iterator for characteristic function. More...

#include <lq.hpp>

Public Member Functions

void operator++ (void)
 Move iterator to next element. More...
 
 CSIter (void)
 Default constructor. More...
 
 CSIter (CharacteristicSets &cs0, int xoff0, int yoff0)
 Constructor. More...
 
bool operator() (void) const
 Test if iterator is finished. More...
 
int val (void) const
 Value of current iterator position. More...
 

Public Attributes

CharacteristicSets * cs
 Pointer to the underlying set. More...
 
unsigned int i
 Current position. More...
 
int xoff
 Offset from start of bitset. More...
 
int yoff
 Offset for each element (0=lower bound, 1=upper bound) More...
 

Detailed Description

Value iterator for characteristic function.

Definition at line 68 of file lq.hpp.

Constructor & Destructor Documentation

Gecode::Set::Rel::CharacteristicSets::CSIter::CSIter ( void  )
inline

Default constructor.

Definition at line 85 of file lq.hpp.

Gecode::Set::Rel::CharacteristicSets::CSIter::CSIter ( CharacteristicSets &  cs0,
int  xoff0,
int  yoff0 
)
inline

Constructor.

Definition at line 87 of file lq.hpp.

Member Function Documentation

void Gecode::Set::Rel::CharacteristicSets::CSIter::operator++ ( void  )
inline

Move iterator to next element.

Definition at line 79 of file lq.hpp.

bool Gecode::Set::Rel::CharacteristicSets::CSIter::operator() ( void  ) const
inline

Test if iterator is finished.

Definition at line 93 of file lq.hpp.

int Gecode::Set::Rel::CharacteristicSets::CSIter::val ( void  ) const
inline

Value of current iterator position.

Definition at line 95 of file lq.hpp.

Member Data Documentation

CharacteristicSets* Gecode::Set::Rel::CharacteristicSets::CSIter::cs

Pointer to the underlying set.

Definition at line 71 of file lq.hpp.

unsigned int Gecode::Set::Rel::CharacteristicSets::CSIter::i

Current position.

Definition at line 73 of file lq.hpp.

int Gecode::Set::Rel::CharacteristicSets::CSIter::xoff

Offset from start of bitset.

Definition at line 75 of file lq.hpp.

int Gecode::Set::Rel::CharacteristicSets::CSIter::yoff

Offset for each element (0=lower bound, 1=upper bound)

Definition at line 77 of file lq.hpp.


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