IloTuple
tuple T {
int i;
string s;
}
T t1=<1,"one">;
execute {
t1.i=2;
t1.s="two";
writeln("t1 = ",t1);
}t1 = <2 "two">
| Method Attributes | Method Name and Description |
|---|---|
| all |
getFieldName(i)
Returns the name of the field at position
i. |
| all |
Returns the number of fields of this tuple.
|
i.
for (var i =0; i < myTuple.getNFields(); i++) {
var f = myTuple.getFieldName(i);
writeln("field name ", f);
writeln("field type ", typeof( myTuple[f]));
writeln("field value ", myTuple[f]);
}