Generated on Fri Mar 20 12:35:19 2009 for cpsp-2.3.1 by doxygen 1.5.5

cpsp::gecode::GC_StlSetRangeIterator Class Reference

#include <GC_StlSetRangeIterator.hh>


Detailed Description

Provides a constant Gecode RangeIterator of a std::set<int> that calculates the ranges on demand.

Definition at line 36 of file GC_StlSetRangeIterator.hh.


Public Member Functions

 GC_StlSetRangeIterator (const std::set< int > *data_)
 GC_StlSetRangeIterator ()
void init (const std::set< int > *const data_)
int max (void) const
int min (void) const
bool operator() (void) const
void operator++ (void)
unsigned int width (void)
virtual ~GC_StlSetRangeIterator ()

Private Member Functions

void getNextRange ()

Private Attributes

std::set< int >::const_iterator actElem
const std::set< int > * data
int nextMax
int nextMin
bool noFurtherRange

Constructor & Destructor Documentation

cpsp::gecode::GC_StlSetRangeIterator::GC_StlSetRangeIterator (  ) 

Definition at line 27 of file GC_StlSetRangeIterator.cc.

cpsp::gecode::GC_StlSetRangeIterator::GC_StlSetRangeIterator ( const std::set< int > *  data_  ) 

Definition at line 33 of file GC_StlSetRangeIterator.cc.

cpsp::gecode::GC_StlSetRangeIterator::~GC_StlSetRangeIterator (  )  [virtual]

Definition at line 41 of file GC_StlSetRangeIterator.cc.


Member Function Documentation

void cpsp::gecode::GC_StlSetRangeIterator::getNextRange (  )  [private]

searchs for the next range and sets the inner members

Definition at line 46 of file GC_StlSetRangeIterator.cc.

void cpsp::gecode::GC_StlSetRangeIterator::init ( const std::set< int > *const   data_  )  [inline]

Definition at line 53 of file GC_StlSetRangeIterator.hh.

int cpsp::gecode::GC_StlSetRangeIterator::max ( void   )  const [inline]

Definition at line 65 of file GC_StlSetRangeIterator.hh.

int cpsp::gecode::GC_StlSetRangeIterator::min ( void   )  const [inline]

Definition at line 64 of file GC_StlSetRangeIterator.hh.

bool cpsp::gecode::GC_StlSetRangeIterator::operator() ( void   )  const [inline]

Definition at line 61 of file GC_StlSetRangeIterator.hh.

void cpsp::gecode::GC_StlSetRangeIterator::operator++ ( void   )  [inline]

Definition at line 62 of file GC_StlSetRangeIterator.hh.

unsigned int cpsp::gecode::GC_StlSetRangeIterator::width ( void   )  [inline]

Definition at line 66 of file GC_StlSetRangeIterator.hh.


Field Documentation

std::set<int>::const_iterator cpsp::gecode::GC_StlSetRangeIterator::actElem [private]

Definition at line 40 of file GC_StlSetRangeIterator.hh.

const std::set<int>* cpsp::gecode::GC_StlSetRangeIterator::data [private]

Definition at line 39 of file GC_StlSetRangeIterator.hh.


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