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

Diff of /trunk/pygtk/interface/instance.cpp

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

revision 270 by johnpye, Sat Feb 4 06:09:57 2006 UTC revision 271 by johnpye, Sat Feb 4 09:08:54 2006 UTC
# Line 625  DEFINE_CHILD_METHODS(DEFINE_SET_REAL_CHI Line 625  DEFINE_CHILD_METHODS(DEFINE_SET_REAL_CHI
625  DEFINE_CHILD_METHODS(DEFINE_GET_REAL_CHILD)  DEFINE_CHILD_METHODS(DEFINE_GET_REAL_CHILD)
626    
627  //------------------------------------------------------  //------------------------------------------------------
       
628    
629    bool
630    InstancCompare::operator()(const Instanc &s1, const Instanc &s2) const{
631            return (unsigned long)s1.i < (unsigned long)s2.i;
632        }
633    
634    const Instanc::set
635    Instanc::getClique() const{
636        Instanc::set s;
637        struct Instance *i1 = i;
638        do{
639            s.insert(Instanc(i1));
640            i1=NextCliqueMember(i1);
641        }while(i1 != i); // ie we've got around the circuit
642    
643        return s;
644    }
645    
646    //------------------------------------------------------
647  // static properties  // static properties
648  SymChar  SymChar
649  Instanc::fixedsym = SymChar("fixed");  Instanc::fixedsym = SymChar("fixed");
650    
651  SymChar  SymChar
652  Instanc::solvervarsym = SymChar("solver_var");  Instanc::solvervarsym = SymChar("solver_var");
   

Legend:
Removed from v.270  
changed lines
  Added in v.271

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