An iterator that finds paths from a start vertex to all reachable destinations. More...
#include <GraphUtils.h>
Classes | |
class | PathVisitor |
Public Types | |
using | Vertices = std::vector< LaneletVertexId > |
Public Member Functions | |
ConnectedPathIterator ()=default | |
ConnectedPathIterator (const GraphT &g) | |
template<typename Func > | |
void | forEachPath (LaneletVertexId start, Func &&f) |
GraphT & | graph () |
bool | hasPathFromTo (LaneletVertexId from, LaneletVertexId to) |
Returns whether a path exists in the graph that connects from and to. More... | |
Private Attributes | |
GraphT | g_ |
Vertices | path_ |
An iterator that finds paths from a start vertex to all reachable destinations.
Definition at line 324 of file GraphUtils.h.
using lanelet::routing::internal::ConnectedPathIterator< GraphT >::Vertices = std::vector<LaneletVertexId> |
Definition at line 326 of file GraphUtils.h.
|
default |
|
inlineexplicit |
Definition at line 355 of file GraphUtils.h.
|
inline |
Calls a function for all full paths starting from start. A full path is a path from start to either a leaf or the last unvisited vertex in loops.
Definition at line 360 of file GraphUtils.h.
|
inline |
Definition at line 387 of file GraphUtils.h.
|
inline |
Returns whether a path exists in the graph that connects from and to.
Definition at line 369 of file GraphUtils.h.
|
private |
Definition at line 390 of file GraphUtils.h.
|
private |
Definition at line 391 of file GraphUtils.h.