Gecode::Iter::Ranges::NaryUnion< I > Class Template Reference
[Range iterators]
Range iterator for union for any number of iterators. More...
#include <ranges-union.hpp>
Classes | |
class | RangeUnionOrder |
Order for iterators: by increasing minimum of next range. More... | |
Protected Attributes | |
RangeUnionOrder | order |
Instance for order. | |
PriorityQueue< I, RangeUnionOrder > | r |
Priority queue to give access to next range. | |
Constructors and initialization | |
| |
NaryUnion (void) | |
Default constructor. | |
NaryUnion (I *i, int n) | |
Initialize with n iterators in i. | |
void | init (I *i, 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::NaryUnion< I >
Range iterator for union for any number of iterators.
Definition at line 83 of file ranges-union.hpp.
Constructor & Destructor Documentation
template<class I >
Gecode::Iter::Ranges::NaryUnion< I >::NaryUnion | ( | void | ) | [inline] |
Default constructor.
Definition at line 208 of file ranges-union.hpp.
template<class I >
Gecode::Iter::Ranges::NaryUnion< I >::NaryUnion | ( | I * | i, | |
int | n | |||
) | [inline] |
Initialize with n iterators in i.
Definition at line 212 of file ranges-union.hpp.
Member Function Documentation
template<class I >
void Gecode::Iter::Ranges::NaryUnion< I >::init | ( | I * | i, | |
int | n | |||
) | [inline] |
Initialize with n iterators in i.
Definition at line 222 of file ranges-union.hpp.
template<class I >
void Gecode::Iter::Ranges::NaryUnion< I >::operator++ | ( | void | ) | [inline] |
Move iterator to next range (if possible).
Definition at line 185 of file ranges-union.hpp.
Member Data Documentation
template<class I>
RangeUnionOrder Gecode::Iter::Ranges::NaryUnion< I >::order [protected] |
Instance for order.
Definition at line 94 of file ranges-union.hpp.
template<class I>
PriorityQueue<I,RangeUnionOrder> Gecode::Iter::Ranges::NaryUnion< I >::r [protected] |
Priority queue to give access to next range.
Definition at line 96 of file ranges-union.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/ranges-union.hpp (Revision: 9692)