SymbolType Class Reference
GAMS Transfer Symbol Types. More...
GAMS Transfer Symbol Types.
This class holds the possible GAMS Transfer symbol types similar to an enumeration class. Note that it is not an enumeration class due to compatibility (e.g. for Octave).
Static Public Member Functions | |
static function | int2str (in value_int) |
Converts a symbol type identifier to string. | |
static function | str2int (in value_str) |
Converts a symbol type name to an identifier. | |
static function | isValid (in value) |
Checks if a symbol type name or identifier is valid. | |
Member Function Documentation
◆ int2str()
|
static |
Converts a symbol type identifier to string.
s = SymbolType.int2str(i)
returns a string with the symbol type name for the given symbol type identifieri
. Ifi
is an invalid identifier, this function raises an error.
Example:
static function int2str(in value_int)
Converts a symbol type identifier to string.
s
equals "set"
◆ isValid()
|
static |
Checks if a symbol type name or identifier is valid.
b = SymbolType.isValid(s)
returns true ifs
is a valid symbol type name or variable type identifier and false otherwise.
Example:
static function isValid(in value)
Checks if a symbol type name or identifier is valid.
◆ str2int()
|
static |
Converts a symbol type name to an identifier.
i = SymbolType.str2int(s)
returns an integer identifier for the given symbol type names
. Ifs
is an invalid type name, this function raises an error.
Example:
static function str2int(in value_str)
Converts a symbol type name to an identifier.
i
equals SymbolType.SET