matlab.gams.control.utils.Iterator Class Reference
Symbol / SymbolRecord Iterator More...
Public Member Functions | |
logical | hasNext () |
Checks if the iteration has more elements. | |
Iterator (varargin) | |
Construct a new utils.Iterator instance. | |
gams.control.SymbolRecord | next () |
Returns the next element in the iteration. | |
void | remove () |
The purpose of this method is to remove all records of the last Symbol element returned by the iterator. | |
Public Attributes | |
integer | type |
Type of iterator. | |
Detailed Description
Member Function Documentation
◆ hasNext()
logical matlab.gams.control.utils.Iterator.hasNext | ( | ) |
Checks if the iteration has more elements.
Return: true if iterator has next element, false otherwise
◆ next()
gams.control.SymbolRecord matlab.gams.control.utils.Iterator.next | ( | ) |
Returns the next element in the iteration.
Return: next element in the iteration
Member Data Documentation
◆ type
integer matlab.gams.control.utils.Iterator.type |
Type of iterator.
1: SetRecord; 2: ParameterRecord; 3: VariableRecord; 4: EquationRecord; >4: other