Generated on Mon May 10 06:47:00 2010 for Gecode by doxygen 1.6.3

Gecode::Iter::Ranges::NaryAppend< I > Class Template Reference
[Range iterators]

Range iterator for appending arbitrarily many iterators. More...

#include <ranges-append.hpp>

List of all members.

Protected Attributes

I * r
 The array of iterators to be appended.
unsigned int n
 Number of iterators.
unsigned int active
 Number of current iterator being processed.

Constructors and initialization



 NaryAppend (void)
 Default constructor.
 NaryAppend (I *i, unsigned int n)
 Initialize with n iterators in i.
void init (I *i, unsigned int n)
 Initialize with n iterators in i.

Iteration control



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

Detailed Description

template<class I>
class Gecode::Iter::Ranges::NaryAppend< I >

Range iterator for appending arbitrarily many iterators.

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

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


Constructor & Destructor Documentation

template<class I >
Gecode::Iter::Ranges::NaryAppend< I >::NaryAppend ( void   )  [inline]

Default constructor.

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

template<class I >
Gecode::Iter::Ranges::NaryAppend< I >::NaryAppend ( I *  i,
unsigned int  n 
) [inline]

Initialize with n iterators in i.

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


Member Function Documentation

template<class I >
void Gecode::Iter::Ranges::NaryAppend< I >::init ( I *  i,
unsigned int  n 
) [inline]

Initialize with n iterators in i.

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

template<class I >
void Gecode::Iter::Ranges::NaryAppend< I >::operator++ ( void   )  [inline]

Move iterator to next range (if possible).

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


Member Data Documentation

template<class I>
I* Gecode::Iter::Ranges::NaryAppend< I >::r [protected]

The array of iterators to be appended.

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

template<class I>
unsigned int Gecode::Iter::Ranges::NaryAppend< I >::n [protected]

Number of iterators.

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

template<class I>
unsigned int Gecode::Iter::Ranges::NaryAppend< I >::active [protected]

Number of current iterator being processed.

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


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