Overview | Group | Tree | Graph | Index | Concepts |
An instance of the class IlcIntToIntStepFunctionCursor
allows you to inspect the contents of an integer step function. A segment of
an integer step function is defined as an interval [x1, x2)
over which the value of the function is the same. Cursors iterate forward or
backward over the segments of an integer step function.
IlcIntToIntStepFunction::setValue
should not be called while a cursor is in use.See Also:
Constructor and Destructor Summary | |
---|---|
public | IlcIntToIntStepFunctionCursor(const IlcIntToIntStepFunction &, IlcInt x) |
Method Summary | |
---|---|
public IlcInt | getSegmentMax() const |
public IlcInt | getSegmentMin() const |
public IlcInt | getValue() const |
public IlcBool | ok() const |
public void | operator++() |
public void | operator--() |
Constructor and Destructor Detail |
---|
This constructor creates a cursor to inspect the integer step function argument. This cursor
lets you iterate forward or backward over the segments of the function. The cursor initially
indicates the segment of the function that contains x
.
Method Detail |
---|
This member function returns the rightmost point of the segment currently indicated by the cursor.
This member function returns the leftmost point of the segment currently indicated by the cursor.
This member function returns the value of the segment currently indicated by the cursor.
This member function returns IlcFalse
if the cursor does not currently indicate a
segment included in the interval of definition of the integer step function. Otherwise, it returns
IlcTrue
.
An attempt to use the cursor after ok()
returns IlcFalse
leads to
undefined behavior.
This operator moves the cursor to the segment adjacent to the current segment (forward move).
This operator moves the cursor to the segment adjacent to the current segment (backward move).