Operations on range iterators
[Range iterators]
Enumerations | |
enum | Gecode::Iter::Ranges::CompareStatus { Gecode::Iter::Ranges::CS_SUBSET, Gecode::Iter::Ranges::CS_DISJOINT, Gecode::Iter::Ranges::CS_NONE } |
Comapre two iterators with each other. More... | |
Functions | |
template<class I > | |
unsigned int | Gecode::Iter::Ranges::size (I &i) |
Size of all ranges of range iterator i. | |
template<class I , class J > | |
bool | Gecode::Iter::Ranges::equal (I &i, J &j) |
Check whether range iterators i and j are equal. | |
template<class I , class J > | |
bool | Gecode::Iter::Ranges::subset (I &i, J &j) |
Check whether range iterator i is subset of range iterator j. | |
template<class I , class J > | |
bool | Gecode::Iter::Ranges::disjoint (I &i, J &j) |
Check whether range iterators i and j are disjoint. | |
template<class I , class J > | |
CompareStatus | Gecode::Iter::Ranges::compare (I &i, J &j) |
Check whether range iterator i is a subset of j, or whether they are disjoint. |
Enumeration Type Documentation
Comapre two iterators with each other.
- Enumerator:
CS_SUBSET First is subset of second iterator.
CS_DISJOINT Intersection is empty.
CS_NONE Neither of the above.
Definition at line 64 of file ranges-operations.hpp.
Function Documentation
unsigned int Gecode::Iter::Ranges::size | ( | I & | i | ) | [inline] |
Size of all ranges of range iterator i.
Definition at line 78 of file ranges-operations.hpp.
bool Gecode::Iter::Ranges::equal | ( | I & | i, | |
J & | j | |||
) | [inline] |
Check whether range iterators i and j are equal.
Definition at line 88 of file ranges-operations.hpp.
bool Gecode::Iter::Ranges::subset | ( | I & | i, | |
J & | j | |||
) | [inline] |
Check whether range iterator i is subset of range iterator j.
Definition at line 101 of file ranges-operations.hpp.
bool Gecode::Iter::Ranges::disjoint | ( | I & | i, | |
J & | j | |||
) | [inline] |
Check whether range iterators i and j are disjoint.
Definition at line 116 of file ranges-operations.hpp.
CompareStatus Gecode::Iter::Ranges::compare | ( | I & | i, | |
J & | j | |||
) | [inline] |
Check whether range iterator i is a subset of j, or whether they are disjoint.
Definition at line 131 of file ranges-operations.hpp.