/[ascend]/trunk/pygtk/instance.cpp
ViewVC logotype

Diff of /trunk/pygtk/instance.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 568 by johnpye, Mon Apr 24 02:23:08 2006 UTC revision 569 by johnpye, Tue May 9 00:10:03 2006 UTC
# Line 404  Instanc::getResidual() const{ Line 404  Instanc::getResidual() const{
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)
# Line 538  Instanc::setRealValue(const double &val, Line 538  Instanc::setRealValue(const double &val,
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){
# Line 577  Instanc::setRealValueWithUnits(double va Line 577  Instanc::setRealValueWithUnits(double va
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);
# Line 588  Instanc::setVarStatus(const VarStatus &s Line 588  Instanc::setVarStatus(const VarStatus &s
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

Legend:
Removed from v.568  
changed lines
  Added in v.569

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22