Generated on Tue Apr 18 10:24:00 2017 for Gecode by doxygen 1.6.3

Gecode::Iter::Ranges::RangeListIter Class Reference
[Range iterators]

Iterator over range lists. More...

#include <ranges-list.hpp>

List of all members.

Classes

class  RangeList
 Range list class. More...
class  RLIO
 Shared object for allocation. More...

Public Member Functions

 ~RangeListIter (void)
 Destructor.

Protected Member Functions

void set (RangeList *l)
 Set range lists.
RangeListget (void) const
 Get head of current range list.
RangeListrange (int min, int max, RangeList *&f)
 Create new range possibly from freelist f and init.
RangeListrange (int min, int max)
 Create new range possibly and init.
template<class I >
RangeListrange (I &i, RangeList *&f)
 Create new range possibly from freelist f and init.
template<class I >
RangeListrange (I &i)
 Create new range possibly and init.
template<class I >
RangeListcopy (I &i)
 Copy the iterator i to a range list.

Protected Attributes

RLIOrlio
 Reference to shared object.
RangeListh
 Head of range list.
RangeListc
 Current list element.

Constructors and initialization



 RangeListIter (void)
 Default constructor.
 RangeListIter (const RangeListIter &i)
 Copy constructor.
 RangeListIter (Region &r)
 Initialize.
void init (Region &r)
 Initialize.
RangeListIteroperator= (const RangeListIter &i)
 Assignment operator.

Iteration control



bool operator() (void) const
 Test whether iterator is still at a range or done.
void operator++ (void)
 Move iterator to next range (if possible).
void reset (void)
 Reset iterator to start.

Range access



int min (void) const
 Return smallest value of range.
int max (void) const
 Return largest value of range.
unsigned int width (void) const
 Return width of range (distance between minimum and maximum).

Detailed Description

Iterator over range lists.

Definition at line 45 of file ranges-list.hpp.


Constructor & Destructor Documentation

Gecode::Iter::Ranges::RangeListIter::RangeListIter ( void   )  [inline]

Default constructor.

Definition at line 132 of file ranges-list.hpp.

Gecode::Iter::Ranges::RangeListIter::RangeListIter ( const RangeListIter i  )  [inline]

Copy constructor.

Definition at line 146 of file ranges-list.hpp.

Gecode::Iter::Ranges::RangeListIter::RangeListIter ( Region r  )  [inline]

Initialize.

Definition at line 136 of file ranges-list.hpp.

Gecode::Iter::Ranges::RangeListIter::~RangeListIter ( void   )  [inline]

Destructor.

Definition at line 169 of file ranges-list.hpp.


Member Function Documentation

void Gecode::Iter::Ranges::RangeListIter::set ( RangeList l  )  [inline, protected]

Set range lists.

Definition at line 179 of file ranges-list.hpp.

RangeListIter::RangeList * Gecode::Iter::Ranges::RangeListIter::get ( void   )  const [inline, protected]

Get head of current range list.

Definition at line 184 of file ranges-list.hpp.

RangeListIter::RangeList * Gecode::Iter::Ranges::RangeListIter::range ( int  min,
int  max,
RangeList *&  f 
) [inline, protected]

Create new range possibly from freelist f and init.

Definition at line 189 of file ranges-list.hpp.

RangeListIter::RangeList * Gecode::Iter::Ranges::RangeListIter::range ( int  min,
int  max 
) [inline, protected]

Create new range possibly and init.

Definition at line 202 of file ranges-list.hpp.

template<class I >
RangeListIter::RangeList * Gecode::Iter::Ranges::RangeListIter::range ( I &  i,
RangeList *&  f 
) [inline, protected]

Create new range possibly from freelist f and init.

Definition at line 210 of file ranges-list.hpp.

template<class I >
RangeListIter::RangeList * Gecode::Iter::Ranges::RangeListIter::range ( I &  i  )  [inline, protected]

Create new range possibly and init.

Definition at line 216 of file ranges-list.hpp.

template<class I >
RangeListIter::RangeList * Gecode::Iter::Ranges::RangeListIter::copy ( I &  i  )  [inline, protected]

Copy the iterator i to a range list.

Definition at line 222 of file ranges-list.hpp.

void Gecode::Iter::Ranges::RangeListIter::init ( Region r  )  [inline]

Initialize.

Definition at line 140 of file ranges-list.hpp.

RangeListIter & Gecode::Iter::Ranges::RangeListIter::operator= ( const RangeListIter i  )  [inline]

Assignment operator.

Definition at line 153 of file ranges-list.hpp.

bool Gecode::Iter::Ranges::RangeListIter::operator() ( void   )  const [inline]

Test whether iterator is still at a range or done.

Definition at line 234 of file ranges-list.hpp.

void Gecode::Iter::Ranges::RangeListIter::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

Definition at line 239 of file ranges-list.hpp.

void Gecode::Iter::Ranges::RangeListIter::reset ( void   )  [inline]

Reset iterator to start.

Definition at line 244 of file ranges-list.hpp.

int Gecode::Iter::Ranges::RangeListIter::min ( void   )  const [inline]

Return smallest value of range.

Definition at line 249 of file ranges-list.hpp.

int Gecode::Iter::Ranges::RangeListIter::max ( void   )  const [inline]

Return largest value of range.

Definition at line 253 of file ranges-list.hpp.

unsigned int Gecode::Iter::Ranges::RangeListIter::width ( void   )  const [inline]

Return width of range (distance between minimum and maximum).

Definition at line 257 of file ranges-list.hpp.


Member Data Documentation

Reference to shared object.

Definition at line 64 of file ranges-list.hpp.

Head of range list.

Definition at line 66 of file ranges-list.hpp.

Current list element.

Definition at line 68 of file ranges-list.hpp.


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