update size setter and vector accessors
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2225 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
eb9fb85ee6
commit
fbd546906b
1 changed files with 47 additions and 47 deletions
|
|
@ -134,7 +134,7 @@ template<class ElemT, class Fitness>
|
|||
*/
|
||||
|
||||
inline __host__ __device__ const ElemType & operator[](unsigned _i) const {
|
||||
if(_i<N)
|
||||
|
||||
return vect[_i];
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ template<class ElemT, class Fitness>
|
|||
*/
|
||||
|
||||
inline __host__ __device__ ElemType & operator[](unsigned _i) {
|
||||
if(_i<N)
|
||||
|
||||
return vect[_i];
|
||||
}
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ template<class ElemT, class Fitness>
|
|||
*@param _size the vector size
|
||||
*/
|
||||
|
||||
virtual inline __host__ void setSize(unsigned _size)=0;
|
||||
virtual void setSize(unsigned _size)=0;
|
||||
|
||||
/**
|
||||
* Write object. Called printOn since it prints the object _on_ a stream.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue