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

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

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 3  Line 3 
3    
4  #include <string>  #include <string>
5  #include <vector>  #include <vector>
6    #include <set>
7    
8  #include "symchar.h"  #include "symchar.h"
9  #include "type.h"  #include "type.h"
# Line 24  typedef enum{ Line 25  typedef enum{
25      ASCXX_VAR_STATUS_UNKNOWN=0, ASCXX_VAR_FIXED, ASCXX_VAR_UNSOLVED, ASCXX_VAR_ACTIVE, ASCXX_VAR_SOLVED      ASCXX_VAR_STATUS_UNKNOWN=0, ASCXX_VAR_FIXED, ASCXX_VAR_UNSOLVED, ASCXX_VAR_ACTIVE, ASCXX_VAR_SOLVED
26  } VarStatus;  } VarStatus;
27    
28    
29    /**
30        Comparator for set<Instanc>
31    */
32    
33    class Instanc;
34    
35    class InstancCompare{
36    public:
37        bool operator()(const Instanc &s1, const Instanc &s2) const;
38    };
39    
40  /**  /**
41      This class has to be called 'Instanc' in C++ to avoid a name clash      This class has to be called 'Instanc' in C++ to avoid a name clash
42      with C. Maybe coulda done it with namespaces but didn't know how.      with C. Maybe coulda done it with namespaces but didn't know how.
# Line 39  typedef enum{ Line 52  typedef enum{
52      worth the effort.      worth the effort.
53  */  */
54  class Instanc{  class Instanc{
55        typedef std::set<Instanc,InstancCompare> set;
56        friend class InstancCompare;
57    
58  private:  private:
59      struct Instance *i;      struct Instance *i;
60      SymChar name;      SymChar name;
# Line 121  public: Line 137  public:
137      const double getLowerBound() const;      const double getLowerBound() const;
138      const double  getUpperBound() const;      const double  getUpperBound() const;
139      const double  getNominal() const;      const double  getNominal() const;
140    
141        const set getClique() const;
142  };  };
143    
144  #endif  #endif

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

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