Generated on Sat Feb 7 2015 02:01:50 for Gecode by doxygen 1.8.9.1
Gecode::Iter::Ranges::Append< I, J > Class Template Reference

Range iterator for appending two range iterators More...

#include <ranges-append.hpp>

Protected Attributes

i
 First iterator. More...
 
j
 Iterator to be appended. More...
 
- Protected Attributes inherited from Gecode::Iter::Ranges::MinMax
int mi
 Minimum of current range. More...
 
int ma
 Maximum of current range. More...
 

Constructors and initialization

 Append (void)
 Default constructor. More...
 
 Append (I &i, J &j)
 Initialize with iterator i and j. More...
 
void init (I &i, J &j)
 Initialize with iterator i and j. More...
 

Iteration control

void operator++ (void)
 Move iterator to next range (if possible) More...
 

Additional Inherited Members

- Public Member Functions inherited from Gecode::Iter::Ranges::MinMax
 MinMax (void)
 Default constructor. More...
 
 MinMax (int min, int max)
 Initialize with range min to max. More...
 
bool operator() (void) const
 Test whether iterator is still at a range or done. More...
 
int min (void) const
 Return smallest value of range. More...
 
int max (void) const
 Return largest value of range. More...
 
unsigned int width (void) const
 Return width of range (distance between minimum and maximum) More...
 
- Protected Member Functions inherited from Gecode::Iter::Ranges::MinMax
void finish (void)
 Set range such that iteration stops More...
 

Detailed Description

template<class I, class J>
class Gecode::Iter::Ranges::Append< I, J >

Range iterator for appending two range iterators

The iterators are allowed to be adjacent but not to overlap (in this case, use Gecode::Iter::Union).

Definition at line 50 of file ranges-append.hpp.

Constructor & Destructor Documentation

template<class I , class J >
Gecode::Iter::Ranges::Append< I, J >::Append ( void  )
inline

Default constructor.

Definition at line 138 of file ranges-append.hpp.

template<class I , class J >
Gecode::Iter::Ranges::Append< I, J >::Append ( I &  i,
J &  j 
)
inline

Initialize with iterator i and j.

Definition at line 142 of file ranges-append.hpp.

Member Function Documentation

template<class I , class J >
void Gecode::Iter::Ranges::Append< I, J >::init ( I &  i,
J &  j 
)
inline

Initialize with iterator i and j.

Definition at line 152 of file ranges-append.hpp.

template<class I , class J >
void Gecode::Iter::Ranges::Append< I, J >::operator++ ( void  )
inline

Move iterator to next range (if possible)

Definition at line 119 of file ranges-append.hpp.

Member Data Documentation

template<class I , class J >
I Gecode::Iter::Ranges::Append< I, J >::i
protected

First iterator.

Definition at line 53 of file ranges-append.hpp.

template<class I , class J >
J Gecode::Iter::Ranges::Append< I, J >::j
protected

Iterator to be appended.

Definition at line 55 of file ranges-append.hpp.


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