Reads multi dimensional data in a sequential order.
Iterators can be created using createIterator on an IMultiDimData or IDataView. If created on the data itself , an IFilter may be specified.
class IIterator;
When data changes of the corresponding identifier are send to AIMMS, an open IIterator is invalidated. Iterating is then only possible after reset is called. This includes data changes outside the slice for which the IIterator is created, in case of a restricted iterator.
More information on when data changes are send to AIMMS can be found in the topic on Optimizing performance.
Name |
Description |
The following tables list the members exposed by IIterator. |
|
Name |
Description |
![]() | ||
![]() |
Returns the value on the current position. Applies to string valued data and element valued data of which the range is not a subset of Integers. | |
![]() |
Returns the value on the current position. Applies to double valued data only. | |
![]() |
Returns the value on the current position. Applies to element valued data only. | |
![]() |
Returns the value on the current position. Applies to integer valued data and element valued data of which the range is a subset of Integers. | |
![]() |
Retrieves the current position into an ITuple, which you must create first by invoking the createTuple method. | |
![]() |
Returns the value on the current position. Applies to string valued data and element valued data of which the range is not a subset of Integers. | |
![]() |
Closes the iterator and invalidates this object. | |
![]() | ||
![]() | ||
![]() |
Returns the dimension of the IIterator. | |
![]() |
Retrieves the value on the current position. | |
![]() |
Moves the current position to the next non-default value, if any. | |
![]() |
Re initializes the iterator: Moves the current position to before the beginning of the data; a subsequent next call will find the first non-default position. If the iterator was in an erroneous state, the reset method will also reset the state to normal. | |
![]() |
Returns the current position of the iterator. The returned ITuple is readonly. |
|
Name |
Description |
![]() |
Returns the position on the specified dimension. |