/[ascend]/trunk/pygtk/solverparameteriterator.cpp
ViewVC logotype

Contents of /trunk/pygtk/solverparameteriterator.cpp

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-c++src
File size: 749 byte(s)
Removed 'interface' directory in trunk/pygtk/interface (moved everything up a level)
Made corresponding changes to SCons* and spec files.
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