Specialized mapping of ranges for strict maps. More...
#include <gecode/iter/ranges-map.hpp>
Protected Attributes | |
| I | i |
| Input range iterator. | |
| M | m |
| Map object. | |
Constructors and initialization | |
| Map (void) | |
| Default constructor. | |
| Map (I &i) | |
| Initialize with ranges from i. | |
| Map (I &i, const M &m) | |
| Initialize with ranges from i and map m. | |
| void | init (I &i) |
| Initialize with ranges from i. | |
| void | init (I &i, const M &m) |
| Initialize with ranges from i and map m. | |
Iteration control | |
| bool | operator() (void) const |
| Test whether iterator is still at a range or done. | |
| void | operator++ (void) |
| Move iterator to next range (if possible). | |
Range access | |
| int | min (void) const |
| Return smallest value of range. | |
| int | max (void) const |
| Return largest value of range. | |
| unsigned int | width (void) const |
| Return width of range (distance between minimum and maximum). | |
Detailed Description
class Gecode::Iter::Ranges::Map< I, M, true >
Specialized mapping of ranges for strict maps.
Definition at line 114 of file ranges-map.hpp.
Constructor & Destructor Documentation
◆ Map() [1/3]
|
inline |
Default constructor.
Definition at line 206 of file ranges-map.hpp.
◆ Map() [2/3]
|
inline |
Initialize with ranges from i.
Definition at line 221 of file ranges-map.hpp.
◆ Map() [3/3]
|
inline |
Initialize with ranges from i and map m.
Definition at line 224 of file ranges-map.hpp.
Member Function Documentation
◆ init() [1/2]
|
inline |
Initialize with ranges from i.
Definition at line 210 of file ranges-map.hpp.
◆ init() [2/2]
|
inline |
Initialize with ranges from i and map m.
Definition at line 215 of file ranges-map.hpp.
◆ operator()()
|
inline |
Test whether iterator is still at a range or done.
Definition at line 228 of file ranges-map.hpp.
◆ operator++()
|
inline |
Move iterator to next range (if possible).
Definition at line 233 of file ranges-map.hpp.
◆ min()
|
inline |
Return smallest value of range.
Definition at line 239 of file ranges-map.hpp.
◆ max()
|
inline |
Return largest value of range.
Definition at line 244 of file ranges-map.hpp.
◆ width()
|
inline |
Return width of range (distance between minimum and maximum).
Definition at line 249 of file ranges-map.hpp.
Member Data Documentation
◆ i
|
protected |
Input range iterator.
Definition at line 117 of file ranges-map.hpp.
◆ m
|
protected |
Map object.
Definition at line 119 of file ranges-map.hpp.
The documentation for this class was generated from the following file:
- gecode/iter/ranges-map.hpp
