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

Contents of /trunk/pygtk/solverparameters.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 942 - (show annotations) (download) (as text)
Sat Nov 25 05:26:47 2006 UTC (14 years, 2 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1198 byte(s)
Incorporated 'SolverParameters' functionality into 'Integrator', both at C level and C++/Python.
This shouldn't break Tcl/Tk as default parameters will be set and used invisibly.
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 class Integrator;
23
24 /// Wrapper class for slv_parameters_t
25 class SolverParameters{
26
27 typedef SolverParameterIterator iterator;
28
29 private:
30 slv_parameters_t p;
31
32 protected:
33 friend class Simulation;
34 friend class Integrator;
35
36 explicit SolverParameters(const slv_parameters_t &);
37 slv_parameters_t &getInternalType();
38 inline const slv_parameters_t &getInternalTypeConst() const{return p;}
39
40 friend class SolverParameterIterator;
41
42 public:
43 SolverParameters();
44 SolverParameters(const SolverParameters &);
45
46 const std::string toString() const;
47
48 const int getLength() const; ///< Number of parameters
49 SolverParameter getParameter(const int &) const;
50
51 const SolverParameterIterator begin() const;
52 const SolverParameterIterator end() const;
53 };
54
55 #endif

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