| 404 |
|
|
| 405 |
return RelationResidual( ri->ptr ); |
return RelationResidual( ri->ptr ); |
| 406 |
} |
} |
| 407 |
|
|
| 408 |
/** |
/** |
| 409 |
Return the numerical value of an instance if it is an assigned atom. |
Return the numerical value of an instance if it is an assigned atom. |
| 410 |
If it is a relation, return the string form of the relation (ie the equation) |
If it is a relation, return the string form of the relation (ie the equation) |
| 538 |
} |
} |
| 539 |
|
|
| 540 |
/** |
/** |
| 541 |
Borrow the workings of this from tcltk98 UnitsProc.c |
Borrow the workings of this from tcltk UnitsProc.c |
| 542 |
*/ |
*/ |
| 543 |
void |
void |
| 544 |
Instanc::setRealValueWithUnits(double val, const char *units, const unsigned &depth){ |
Instanc::setRealValueWithUnits(double val, const char *units, const unsigned &depth){ |
| 577 |
/** |
/** |
| 578 |
Set the instance variable status. See @getVarStatus |
Set the instance variable status. See @getVarStatus |
| 579 |
*/ |
*/ |
| 580 |
void |
void |
| 581 |
Instanc::setVarStatus(const VarStatus &s){ |
Instanc::setVarStatus(const VarStatus &s){ |
| 582 |
InstanceInterfaceData *d; |
InstanceInterfaceData *d; |
| 583 |
d = (InstanceInterfaceData *)GetInterfacePtr(i); |
d = (InstanceInterfaceData *)GetInterfacePtr(i); |
| 588 |
d->status = s; |
d->status = s; |
| 589 |
} |
} |
| 590 |
|
|
| 591 |
/** |
/** |
| 592 |
Return the instance variable status. |
Return the instance variable status. |
| 593 |
This data is stored in the 'interface_ptr' of the instance, so |
This data is stored in the 'interface_ptr' of the instance, so |
| 594 |
that we can be sure we'll get it, regardless of which |
that we can be sure we'll get it, regardless of which |
| 595 |
instance of an Instanc we have in our hands :-) |
instance of an Instanc we have in our hands :-) |
| 596 |
*/ |
*/ |
| 597 |
const VarStatus |
const VarStatus |