Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Values::ValueListIter Class Reference

Iterator over value lists. More...

#include <values-list.hpp>

Classes

class  ValueList
 Value list class. More...
 
class  VLIO
 Shared object for allocation. More...
 

Public Member Functions

 ~ValueListIter (void)
 Destructor. More...
 

Protected Member Functions

void set (ValueList *l)
 Set value lists. More...
 

Protected Attributes

VLIOvlio
 Reference to shared object. More...
 
ValueListh
 Head of value list. More...
 
ValueListc
 Current list element. More...
 

Constructors and initialization

 ValueListIter (void)
 Default constructor. More...
 
 ValueListIter (const ValueListIter &i)
 Copy constructor. More...
 
 ValueListIter (Region &r)
 Initialize. More...
 
void init (Region &r)
 Initialize. More...
 
ValueListIteroperator= (const ValueListIter &i)
 Assignment operator (both iterators must be allocated from the same region) 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...
 
void reset (void)
 Reset iterator to start. More...
 

Value access

int val (void) const
 Return value. More...
 

Detailed Description

Iterator over value lists.

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

Constructor & Destructor Documentation

Gecode::Iter::Values::ValueListIter::ValueListIter ( void  )
inline

Default constructor.

Definition at line 113 of file values-list.hpp.

Gecode::Iter::Values::ValueListIter::ValueListIter ( const ValueListIter i)
inline

Copy constructor.

Definition at line 128 of file values-list.hpp.

Gecode::Iter::Values::ValueListIter::ValueListIter ( Region r)
inline

Initialize.

Definition at line 117 of file values-list.hpp.

Gecode::Iter::Values::ValueListIter::~ValueListIter ( void  )
inline

Destructor.

Definition at line 149 of file values-list.hpp.

Member Function Documentation

void Gecode::Iter::Values::ValueListIter::set ( ValueList l)
inlineprotected

Set value lists.

Definition at line 159 of file values-list.hpp.

void Gecode::Iter::Values::ValueListIter::init ( Region r)
inline

Initialize.

Definition at line 122 of file values-list.hpp.

ValueListIter & Gecode::Iter::Values::ValueListIter::operator= ( const ValueListIter i)
inline

Assignment operator (both iterators must be allocated from the same region)

Definition at line 134 of file values-list.hpp.

bool Gecode::Iter::Values::ValueListIter::operator() ( void  ) const
inline

Test whether iterator is still at a value or done.

Definition at line 164 of file values-list.hpp.

void Gecode::Iter::Values::ValueListIter::operator++ ( void  )
inline

Move iterator to next value (if possible)

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

void Gecode::Iter::Values::ValueListIter::reset ( void  )
inline

Reset iterator to start.

Definition at line 174 of file values-list.hpp.

int Gecode::Iter::Values::ValueListIter::val ( void  ) const
inline

Return value.

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

Member Data Documentation

VLIO* Gecode::Iter::Values::ValueListIter::vlio
protected

Reference to shared object.

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

ValueList* Gecode::Iter::Values::ValueListIter::h
protected

Head of value list.

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

ValueList* Gecode::Iter::Values::ValueListIter::c
protected

Current list element.

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


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