/[ascend]/trunk/pygtk/interface/solver.h
ViewVC logotype

Diff of /trunk/pygtk/interface/solver.h

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

revision 207 by johnpye, Thu Dec 22 10:58:33 2005 UTC revision 208 by johnpye, Tue Jan 24 03:19:37 2006 UTC
# Line 21  extern "C"{ Line 21  extern "C"{
21  #include <solver/slv_client.h>  #include <solver/slv_client.h>
22  }  }
23    
 class Solver;  
   
 /**  
     Some global functions  
 */  
 void registerStandardSolvers();  
 void registerSolver(SlvRegistration regfuncptr);  
 const std::vector<Solver> getSolvers();  
   
24  /**  /**
25      This is a rather problematic wrapper for slv_client.h. It's hard because registerd solvers      This is a rather problematic wrapper for slv_client.h. It's hard because registerd solvers
26      are referenced primarily by index, not by pointer etc, so given the index, we always have      are referenced primarily by index, not by pointer etc, so given the index, we always have
27      to look up the solver in some way or other.      to look up the solver in some way or other.
28    
29        Because the index is changeable from session to session, depending on the order of
30        registration, we'll use the *name* as the primary key and look up the index as needed.
31  */  */
32  class Solver{  class Solver{
33  private:  private:
# Line 46  public: Line 40  public:
40      const std::string& getName() const;      const std::string& getName() const;
41  };  };
42    
43    /**
44        Some global functions
45    */
46    void registerStandardSolvers();
47    void registerSolver(SlvRegistration regfuncptr);
48    const std::vector<Solver> getSolvers();
49    
50  #endif  #endif

Legend:
Removed from v.207  
changed lines
  Added in v.208

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