Print on solution() =>pure virtual
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2206 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
6ac24e1ce3
commit
f126e427bc
1 changed files with 3 additions and 13 deletions
|
|
@ -62,11 +62,9 @@ public:
|
||||||
*@param _size The neighborhood size.
|
*@param _size The neighborhood size.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
moCudaVector(unsigned _size) {
|
moCudaVector(unsigned _size): N (_size){
|
||||||
|
|
||||||
N = _size;
|
vect = new ElemType[N];
|
||||||
|
|
||||||
vect = new ElemType[_size];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,15 +152,7 @@ public:
|
||||||
* Print the solution
|
* Print the solution
|
||||||
*/
|
*/
|
||||||
|
|
||||||
virtual void printOn(std::ostream& os) const {
|
virtual void printOn(std::ostream& os) const=0;
|
||||||
EO<Fitness>::printOn(os);
|
|
||||||
os << ' ';
|
|
||||||
os << N << ' ';
|
|
||||||
unsigned int i;
|
|
||||||
for (i = 0; i < N; i++)
|
|
||||||
os << vect[i] << ' ';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue