Commit 29d277a7 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE #305] made iterators const.

parent eda49bf2
......@@ -382,12 +382,12 @@ WFiber WDataSetFibers::operator[]( size_t numTract ) const
return result;
}
WFiberIterator WDataSetFibers::begin()
WFiberIterator WDataSetFibers::begin() const
{
return WFiberIterator( this, 0 );
}
WFiberIterator WDataSetFibers::end()
WFiberIterator WDataSetFibers::end() const
{
return WFiberIterator( this, m_lineLengths->size() );
}
......
......@@ -403,18 +403,18 @@ public:
WFiber operator[]( size_t numTract ) const;
/**
* Returns an iterator to the first fiber of the dataset.
* Returns an iterator to the first fiber of the dataset. The iterator does not allow any modification of the data.
*
* \return An iterator to the first fiber.
*/
WFiberIterator begin();
WFiberIterator begin() const;
/**
* Returns an iterator pointing beyond the last fiber.
* Returns an iterator pointing beyond the last fiber. The iterator does not allow any modification of the data.
*
* \return An iterator pointing beyond the last fiber.
*/
WFiberIterator end();
WFiberIterator end() const;
protected:
/**
......
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