isSet method
Check if a field is currently set or unset, using the fieldId
.
Implementation
bool isSet(int fieldID) {
switch (fieldID) {
case TAG_VERTICES:
return isSetTag_vertices();
case EDGES:
return isSetEdges();
case SPACE_VERTICES:
return isSetSpace_vertices();
case SPACE_EDGES:
return isSetSpace_edges();
case POSITIVE_PART_CORRELATIVITY:
return isSetPositive_part_correlativity();
case NEGATIVE_PART_CORRELATIVITY:
return isSetNegative_part_correlativity();
case STATUS:
return isSetStatus();
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}