/[ascend]/trunk/pygtk/relation.h
ViewVC logotype

Contents of /trunk/pygtk/relation.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 772 - (show annotations) (download) (as text)
Fri Jul 14 06:03:47 2006 UTC (14 years, 3 months ago) by johnpye
File MIME type: text/x-chdr
File size: 724 byte(s)
Improved the reporting of structural singularities in PyGTK interface.
1 #ifndef ASCXX_RELATION_H
2 #define ASCXX_RELATION_H
3
4 #include <string>
5 #include <vector>
6
7 #include "simulation.h"
8
9 struct Variable;
10
11 #include "config.h"
12 extern "C"{
13 #include <utilities/ascConfig.h>
14 #include <solver/slv_types.h>
15 #include <solver/rel.h>
16 }
17
18 class Relation : public Instance{
19
20 private:
21 Simulation *sim;
22 struct rel_relation *rel;
23
24 public:
25 Relation();
26 Relation(const Relation &old);
27 Relation(Simulation *sim, rel_relation *rel);
28
29 const std::string getName() const;
30 const double getResidual() const;
31 const std::vector<Variable> getIncidentVariables() const;
32 const int getNumIncidentVariables() const;
33 Instanc getInstance() const;
34 std::string getRelationAsString() const;
35 };
36
37 #endif /* ASCXX_RELATION_H */

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