From f126e427bca5820c93514cc748bf3aa16820b17b Mon Sep 17 00:00:00 2001 From: boufaras Date: Wed, 13 Apr 2011 13:13:35 +0000 Subject: [PATCH] Print on solution() =>pure virtual git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2206 331e1502-861f-0410-8da2-ba01fb791d7f --- .../ParadisEO-GPU/src/cudaType/moCudaVector.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h b/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h index bf5d236ab..263bead5a 100644 --- a/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h +++ b/branches/ParadisEO-GPU/src/cudaType/moCudaVector.h @@ -62,11 +62,9 @@ public: *@param _size The neighborhood size. */ - moCudaVector(unsigned _size) { + moCudaVector(unsigned _size): N (_size){ - N = _size; - - vect = new ElemType[_size]; + vect = new ElemType[N]; } @@ -154,15 +152,7 @@ public: * Print the solution */ - virtual void printOn(std::ostream& os) const { - EO::printOn(os); - os << ' '; - os << N << ' '; - unsigned int i; - for (i = 0; i < N; i++) - os << vect[i] << ' '; - - } + virtual void printOn(std::ostream& os) const=0; protected: