ContentsIndexHome
PreviousUpNext
ISetIterator::reset Method

Re initializes the iterator: Moves the current position to before the beginning of the data; a subsequent next call will find the first element. If the iterator was in an erroneous state, the reset method will also reset the state to normal. 

 

C++
virtual void reset() = 0;

As long as there are pending changes, an open ISetIterator iterates over the original set contents only. An open ISetIterator gets invalidated if changes on the corresponding set are sent to AIMMS. After a call to the reset method, the iterator will be valid again and will iterate over the set contents of the moment of calling reset. 

More information on when modifications on sets are sent to AIMMS can be found in the topic on Optimizing performance.