Skip to content
Snippets Groups Projects
Commit 11f1a95d authored by Julien Michel's avatar Julien Michel
Browse files

Ajout d'une méthode Set pour les vertex iterators

parent e928384c
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,11 @@ class ITK_EXPORT RCC8VertexIterator
* \return The current vertex pointed by the iterator.
*/
VertexPointerType Get(void);
/**
* Set the current vertex.
* \param vertex The vertex to set.
*/
void Set(VertexPointerType vertex);
/**
* Get the current vertex index.
* \return The current vertex index.
......
......@@ -65,6 +65,17 @@ namespace otb
{
return (*(m_Graph->GetGraph()))[*m_Iter];
}
/**
* Set the current vertex.
* \param vertex The vertex to set.
*/
template <class TGraph>
void
RCC8VertexIterator<TGraph>
::Set(VertexPointerType vertex)
{
(*(m_Graph->GetGraph()))[*m_Iter]=vertex;
}
/**
* Get the current vertex index.
* \return The current vertex index.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment