Gecode::Iter::Ranges::NaryUnion Class Reference
[Range iterators]
Range iterator for union of iterators. More...
#include <ranges-union.hpp>
Protected Member Functions | |
template<class I , class J > | |
RangeList * | two (I &i, J &j) |
Return range list for union of two iterators. | |
template<class I > | |
void | insert (I &i, RangeList *&u) |
Insert ranges from i into u. | |
Protected Attributes | |
RangeList * | f |
Freelist used for allocation. | |
Constructors and initialization | |
| |
NaryUnion (void) | |
Default constructor. | |
template<class I > | |
NaryUnion (Region &r, I &i) | |
Initialize with single iterator i. | |
template<class I , class J > | |
NaryUnion (Region &r, I &i, J &j) | |
Initialize with iterators i and j. | |
template<class I > | |
NaryUnion (Region &r, I *i, int n) | |
Initialize with n iterators in i. | |
template<class I > | |
void | init (Region &r, I &i) |
Initialize with single iterator i. | |
template<class I , class J > | |
void | init (Region &r, I &i, J &j) |
Initialize with iterators i and j. | |
template<class I > | |
void | init (Region &r, I *i, int n) |
Initialize with n iterators in i. | |
template<class I > | |
void | operator|= (I &i) |
Add iterator i. | |
NaryUnion & | operator= (const NaryUnion &m) |
Assignment operator (both iterators must be allocated from the same region). |
Detailed Description
Range iterator for union of iterators.
Definition at line 78 of file ranges-union.hpp.
Constructor & Destructor Documentation
Gecode::Iter::Ranges::NaryUnion::NaryUnion | ( | void | ) | [inline] |
Default constructor.
Definition at line 279 of file ranges-union.hpp.
Gecode::Iter::Ranges::NaryUnion::NaryUnion | ( | Region & | r, | |
I & | i | |||
) | [inline] |
Initialize with single iterator i.
Definition at line 331 of file ranges-union.hpp.
Gecode::Iter::Ranges::NaryUnion::NaryUnion | ( | Region & | r, | |
I & | i, | |||
J & | j | |||
) | [inline] |
Initialize with iterators i and j.
Definition at line 336 of file ranges-union.hpp.
Gecode::Iter::Ranges::NaryUnion::NaryUnion | ( | Region & | r, | |
I * | i, | |||
int | n | |||
) | [inline] |
Initialize with n iterators in i.
Definition at line 341 of file ranges-union.hpp.
Member Function Documentation
RangeListIter::RangeList * Gecode::Iter::Ranges::NaryUnion::two | ( | I & | i, | |
J & | j | |||
) | [inline, protected] |
Return range list for union of two iterators.
Definition at line 184 of file ranges-union.hpp.
void Gecode::Iter::Ranges::NaryUnion::insert | ( | I & | i, | |
RangeList *& | u | |||
) | [inline, protected] |
Insert ranges from i into u.
Definition at line 227 of file ranges-union.hpp.
void Gecode::Iter::Ranges::NaryUnion::init | ( | Region & | r, | |
I & | i | |||
) | [inline] |
Initialize with single iterator i.
Definition at line 284 of file ranges-union.hpp.
void Gecode::Iter::Ranges::NaryUnion::init | ( | Region & | r, | |
I & | i, | |||
J & | j | |||
) | [inline] |
Initialize with iterators i and j.
Definition at line 292 of file ranges-union.hpp.
void Gecode::Iter::Ranges::NaryUnion::init | ( | Region & | r, | |
I * | i, | |||
int | n | |||
) | [inline] |
Initialize with n iterators in i.
Definition at line 300 of file ranges-union.hpp.
void Gecode::Iter::Ranges::NaryUnion::operator|= | ( | I & | i | ) | [inline] |
Add iterator i.
Definition at line 347 of file ranges-union.hpp.
Assignment operator (both iterators must be allocated from the same region).
Definition at line 354 of file ranges-union.hpp.
Member Data Documentation
RangeList* Gecode::Iter::Ranges::NaryUnion::f [protected] |
Freelist used for allocation.
Definition at line 81 of file ranges-union.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/ranges-union.hpp (Revision: 14967)