Commit 3fe3a89e authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Roadmap::addEdge -> Roadmap::impl_addEdge.

parent a85e34ce
......@@ -257,7 +257,7 @@ namespace hpp {
/// // Your code here.
/// }
/// \endcode
virtual void addEdge (const EdgePtr_t& e);
virtual void impl_addEdge (const EdgePtr_t& e);
/// Node factory
/// Reimplement the function if you want to create an instance of a
......
......@@ -145,11 +145,11 @@ namespace hpp {
EdgePtr_t edge = new Edge (from, to, path);
if (!from->isOutNeighbor (to)) from->addOutEdge (edge);
if (!to->isInNeighbor (from)) to->addInEdge (edge);
addEdge(edge);
impl_addEdge(edge);
edge = new Edge (to, from, path->reverse ());
if (!from->isInNeighbor (to)) from->addInEdge (edge);
if (!to->isOutNeighbor (from)) to->addOutEdge (edge);
addEdge(edge);
impl_addEdge(edge);
}
NodePtr_t Roadmap::addNodeAndEdges (const NodePtr_t from,
......@@ -254,7 +254,7 @@ namespace hpp {
EdgePtr_t edge = new Edge (n1, n2, path);
if (!n1->isOutNeighbor (n2)) n1->addOutEdge (edge);
if (!n2->isInNeighbor (n1)) n2->addInEdge (edge);
addEdge(edge);
impl_addEdge(edge);
return edge;
}
......@@ -305,7 +305,7 @@ namespace hpp {
}
}
void Roadmap::addEdge (const EdgePtr_t& edge)
void Roadmap::impl_addEdge (const EdgePtr_t& edge)
{
edges_.push_back (edge);
......
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