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

Contents of /trunk/pygtk/solverparameters.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (14 years, 1 month ago) by johnpye
File MIME type: text/x-chdr
File size: 1081 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
1 #ifndef ASCXX_SOLVERPARAMETERS_H
2 #define ASCXX_SOLVERPARAMETERS_H
3
4 #include <stdio.h>
5 #include <utilities/ascConfig.h>
6 #include <solver/slv_types.h>
7 #include <solver/rel.h>
8 #include <solver/logrel.h>
9 #include <solver/mtx.h>
10 #include <general/list.h>
11 #include <solver/slv_common.h>
12
13 #include "solver.h"
14 #include "solverparameter.h"
15
16 #include <string>
17
18 // Iterator class for SolverParameters :-)
19
20 class SolverParameterIterator;
21 class SolverParameter;
22
23 /// Wrapper class for slv_parameters_t
24 class SolverParameters{
25
26 typedef SolverParameterIterator iterator;
27
28 private:
29 slv_parameters_t p;
30
31 protected:
32 friend class Simulation;
33 explicit SolverParameters(const slv_parameters_t &);
34 slv_parameters_t &getInternalType();
35
36 friend class SolverParameterIterator;
37
38 public:
39 SolverParameters();
40 SolverParameters(const SolverParameters &);
41
42 const std::string toString() const;
43
44 const int getLength() const; ///< Number of parameters
45 SolverParameter getParameter(const int &) const;
46
47 const SolverParameterIterator begin() const;
48 const SolverParameterIterator end() const;
49 };
50
51 #endif

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