Overview | Group | Tree | Graph | Index | Concepts |
An instance of IloGranularFunction::Cursor
traverses the
segments of a granular function.
See Also:
Constructor Summary | |
---|---|
public | Cursor(const IloGranularFunction func, IloNum x) |
Method Summary | |
---|---|
public IloNum | getSegmentMax() const |
public IloNum | getSegmentMin() const |
public IloNum | getValue() const |
public IloBool | ok() const |
public void | operator++() |
public void | operator--() |
Constructor Detail |
---|
This constructor creates a cursor to traverse the segments of the granular function func
.
It is initialized at the segment containing
the position x
. If this position is invalid, an error will be raised.
Method Detail |
---|
This member function returns the right-most valid position pertaining to the current segment.
This member function returns the left-most valid position pertaining to the current segment.
This member function returns the value taken by the function on the current segment.
This member function returns IloTrue
if the current position of the cursor is a
valid one. Otherwise, it returns IloFalse
.
This left-increment operator shifts the current position of the cursor to the next segment of the function.
This left-decrement operator shifts the current position of the cursor to the previous segment of the function.