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

Annotation of /trunk/pygtk/solverparameters.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download) (as text)
Mon Apr 24 02:23:08 2006 UTC (18 years, 2 months 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 johnpye 208 #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 johnpye 221 #include "solverparameter.h"
15 johnpye 208
16     #include <string>
17    
18 johnpye 221 // Iterator class for SolverParameters :-)
19    
20     class SolverParameterIterator;
21     class SolverParameter;
22    
23     /// Wrapper class for slv_parameters_t
24 johnpye 208 class SolverParameters{
25 johnpye 221
26     typedef SolverParameterIterator iterator;
27    
28 johnpye 208 private:
29     slv_parameters_t p;
30    
31     protected:
32     friend class Simulation;
33     explicit SolverParameters(const slv_parameters_t &);
34 johnpye 225 slv_parameters_t &getInternalType();
35 johnpye 208
36 johnpye 221 friend class SolverParameterIterator;
37    
38 johnpye 208 public:
39     SolverParameters();
40     SolverParameters(const SolverParameters &);
41 johnpye 221
42 johnpye 208 const std::string toString() const;
43 johnpye 221
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 johnpye 208 };
50    
51     #endif

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