Commit 35d20c7c authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE #305] now using WDataSetFibers::const_iterator. Looks mor std-like.

parent 29d277a7
......@@ -382,12 +382,12 @@ WFiber WDataSetFibers::operator[]( size_t numTract ) const
return result;
}
WFiberIterator WDataSetFibers::begin() const
WDataSetFibers::const_iterator WDataSetFibers::begin() const
{
return WFiberIterator( this, 0 );
}
WFiberIterator WDataSetFibers::end() const
WDataSetFibers::const_iterator WDataSetFibers::end() const
{
return WFiberIterator( this, m_lineLengths->size() );
}
......
......@@ -92,6 +92,17 @@ public:
*/
typedef boost::shared_ptr< std::vector< double > > VertexParemeterArray;
/**
* Iterator to go through the fibers.
*/
typedef WFiberIterator iterator;
/**
* Const iterator to go through fibers. As the WFiberIterators does not allow any modifications per-se, the const iterator and the standard
* iterator are the same.
*/
typedef WFiberIterator const_iterator;
/**
* Item used in the selection below also containing color info.
*/
......@@ -407,14 +418,14 @@ public:
*
* \return An iterator to the first fiber.
*/
WFiberIterator begin() const;
const_iterator begin() const;
/**
* 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() const;
const_iterator 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