Commit fb8920ef authored by berenger-bramas's avatar berenger-bramas

Insert a set data method in iterator containers.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@291 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 5384d470
......@@ -202,6 +202,11 @@ public:
return (*iter)->target;
}
/** Set the data */
void setData(const T& inData){
(*iter)->target = inData;
}
/**
* To know if an iterator is at the end of the list
* @return true if the current iterator can gotoNext and access to value, else false
......
......@@ -204,7 +204,6 @@ public:
return this->array;
}
/** This class is a basic iterator
* <code>
* typename FVector<int>::ConstBasicIterator iter(myVector);<br>
......@@ -248,6 +247,11 @@ public:
return this->vector->array[this->index];
}
/** Set the data */
void setData(const T& inData){
this->vector->array[this->index] = inData;
}
/** Remove current data */
void remove(){
if( hasNotFinished() ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment