Overview | Group | Tree | Graph | Index | Concepts |
An instance of IlcGranularFunctionCursor
traverses the
segments of a granular function.
See Also:
Constructor Summary | |
---|---|
public | IlcGranularFunctionCursor(const IlcGranularFunction func, 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 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 IlcTrue
if the current position
of the cursor is a valid one. Otherwise, it returns
IlcFalse
.
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.