Commit 07bbd78b authored by berenger-bramas's avatar berenger-bramas
Browse files

Update the vector container (to have an [] operator)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@142 2616d619-271b-44dc-8df4-d4a8f33a7222
parent 600fc8c5
......@@ -172,6 +172,24 @@ public:
++this->index;
}
/**
*@brief get a const reference of a given value
*@param inPosition the query position
*@return the value
*/
T& operator[](const int inPosition ){
return this->array[inPosition];
}
/**
*@brief get a const reference of a given value
*@param inPosition the query position
*@return the value
*/
const T& operator[](const int inPosition ) const{
return this->array[inPosition];
}
/** This class is a basic iterator
* <code>
* typename FVector<int>::ConstBasicIterator iter(myVector);<br>
......
Supports Markdown
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