Parent Directory | Revision Log
Merging in refactor of the C++ code, which is moved out of 'pygtk' and into 'ascxx'. Adding support for IPOPT 3.9.1, the current latest version. Support in dtar for parallel builds (possibly needs some testing still).
1 | #include "solverparameteriterator.h" |
2 | |
3 | #include <iostream> |
4 | using namespace std; |
5 | |
6 | SolverParameterIterator::SolverParameterIterator(slv_parameter *p) : p(p){ |
7 | // create iterator, protected function |
8 | } |
9 | |
10 | SolverParameterIterator::SolverParameterIterator(){ |
11 | // default ctor |
12 | } |
13 | |
14 | void |
15 | SolverParameterIterator::operator=(const SolverParameterIterator &old){ |
16 | p = old.p; |
17 | } |
18 | |
19 | void |
20 | SolverParameterIterator::operator++(){ |
21 | //cerr << "INCREMENT P" << endl; |
22 | p++; |
23 | } |
24 | |
25 | const bool |
26 | SolverParameterIterator::operator<(const SolverParameterIterator &I2) const{ |
27 | return p < I2.p; |
28 | } |
29 | |
30 | SolverParameter |
31 | SolverParameterIterator::operator*() const{ |
32 | return SolverParameter(p); |
33 | } |
34 | |
35 | ostream &operator<<( ostream &outs, const SolverParameterIterator &I){ |
36 | outs << I.p; |
37 | return outs; |
38 | } |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |