Matlab.GAMS.GAMSIterator Class Reference

GAMSSymbol / GAMSSymbolRecord Iterator. More...

Public Member Functions

 GAMSIterator (varargin)
 Construct a new GAMSIterator instance.
 
logical hasNext ()
 Checks if the iteration has more elements. More...
 
GAMSSymbolRecord next ()
 Returns the next element in the iteration. More...
 
void remove ()
 The purpose of this method is to remove all records of the last GAMSSymbol element returned by the iterator.
 

Public Attributes

integer type
 Type of iterator. More...
 

Detailed Description

Member Function Documentation

◆ hasNext()

logical Matlab.GAMS.GAMSIterator.hasNext ( )

Checks if the iteration has more elements.

Return: true if iterator has next element, false otherwise

◆ next()

GAMSSymbolRecord Matlab.GAMS.GAMSIterator.next ( )

Returns the next element in the iteration.

Return: next element in the iteration

Member Data Documentation

◆ type

integer Matlab.GAMS.GAMSIterator.type

Type of iterator.

1: GAMSSetRecord; 2: GAMSParameterRecord; 3: GAMSVariableRecord; 4: GAMSEquationRecord; >4: other