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

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

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

revision 253 by johnpye, Wed Feb 1 06:29:46 2006 UTC revision 254 by johnpye, Thu Feb 2 06:27:17 2006 UTC
# Line 134  public: Line 134  public:
134      const Variable getVariable(const int &col);      const Variable getVariable(const int &col);
135      const Relation getRelation(const int &col);      const Relation getRelation(const int &col);
136      const int getBlockRow(const int &row) const;      const int getBlockRow(const int &row) const;
137        const std::vector<Variable> getBlockVars(const int block);
138  };  };
139                
140    
141    /* Variables and relations belong to solvers, so they're here: */
142    
143    class Variable{
144    public:
145        explicit Variable(const Variable &old);
146        const std::string &getName();
147    };
148    
149    %extend Variable {
150        %pythoncode{
151            def __repr__(self):
152                return self.getName()
153        }
154    }
155    
156    class Relation{
157    public:
158        explicit Relation(const Relation &old);
159        const std::string &getName();
160    };
161    
162    %extend Relation {
163        %pythoncode{
164            def __repr__(self):
165                return self.getName()
166        }
167    }
168    

Legend:
Removed from v.253  
changed lines
  Added in v.254

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