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

Range iterator for appending a singleton with a range iterator More...

#include <ranges-singleton-append.hpp>

Protected Attributes

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

 SingletonAppend (void)
 Default constructor. More...
 
 SingletonAppend (int i0, int i1, J &j)
 Initialize with singleton (i0, i1) and iterator j. More...
 
void init (int i0, int i1, J &j)
 Initialize with singleton (i0, i1) and iterator 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 J>
class Gecode::Iter::Ranges::SingletonAppend< J >

Range iterator for appending a singleton with a range iterator

The singleton is not allowed to be adjacent to the iterator.

Definition at line 51 of file ranges-singleton-append.hpp.

Constructor & Destructor Documentation

template<class J >
Gecode::Iter::Ranges::SingletonAppend< J >::SingletonAppend ( void  )
inline

Default constructor.

Definition at line 93 of file ranges-singleton-append.hpp.

template<class J >
Gecode::Iter::Ranges::SingletonAppend< J >::SingletonAppend ( int  i0,
int  i1,
J &  j 
)
inline

Initialize with singleton (i0, i1) and iterator j.

Definition at line 97 of file ranges-singleton-append.hpp.

Member Function Documentation

template<class J >
void Gecode::Iter::Ranges::SingletonAppend< J >::init ( int  i0,
int  i1,
J &  j 
)
inline

Initialize with singleton (i0, i1) and iterator j.

Definition at line 104 of file ranges-singleton-append.hpp.

template<class J >
void Gecode::Iter::Ranges::SingletonAppend< J >::operator++ ( void  )
inline

Move iterator to next range (if possible)

Definition at line 81 of file ranges-singleton-append.hpp.

Member Data Documentation

template<class J>
J Gecode::Iter::Ranges::SingletonAppend< J >::j
protected

Iterator to be appended.

Definition at line 54 of file ranges-singleton-append.hpp.


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