PPL API Reference |
|
---|
Public Member Functions | |
Constructors | |
PropertyMap ()=default | |
PropertyMap (WorkspaceSkeleton *_ws) | |
Sub-graph Generators | |
WorkspaceSkeleton * | GetEdgeFilteredSkeleton (EdgeFilterFunction &&_f) |
WorkspaceSkeleton * | GetVertexFilteredSkeleton (VertexFilterFunction &&_f) |
Accessors | |
void | SetSkeleton (WorkspaceSkeleton *_ws) |
VertexMapType & | GetVertexMap () |
EdgeMapType & | GetEdgeMap () |
void | SetVertexMap (VertexMapType &_vMap) |
void | SetEdgeMap (EdgeMapType &_eMap) |
void | SetVertexProperty (const VD &_v, const VertexProperty &_vp) |
Individual accessors. | |
void | SetEdgeProperty (const ED &_e, const EdgeProperty &_ep) |
VertexProperty & | GetVertexProperty (const VD &_v) |
EdgeProperty & | GetEdgeProperty (const ED &_e) |
IO | |
void | Write (const std::string &_file) |
void | Read (const std::string &_file) |
Public Types | |
Local Types | |
typedef WorkspaceSkeleton::GraphType | GraphType |
Graph type is a directed multiedge graph of points and paths. | |
typedef WorkspaceSkeleton::VD | VD |
typedef WorkspaceSkeleton::ED | ED |
typedef GraphType::vertex_iterator | vertex_iterator |
typedef GraphType::adj_edge_iterator | adj_edge_iterator |
typedef function< bool(EdgeProperty &)> | EdgeFilterFunction |
typedef function< bool(VertexProperty &)> | VertexFilterFunction |
typedef unordered_map< ED, EdgeProperty, edgeHash > | EdgeMapType |
typedef unordered_map< VD, VertexProperty > | VertexMapType |
Property map of the workspace skeleton.
To use just edge property map, use default vertex property.
typedef function<bool(EdgeProperty&)> PropertyMap< EdgeProperty, VertexProperty >::EdgeFilterFunction |
Filter function types. The filter function removes the properties or skeleton elemets for which the function returns true.
WorkspaceSkeleton * PropertyMap< EdgeProperty, VertexProperty >::GetEdgeFilteredSkeleton | ( | EdgeFilterFunction && | _f | ) |
Compute the graph in terms of filter funtion then replace the old graph with the annotated one.
_f | Filter functor: Delete edges for which function returns true. |
WorkspaceSkeleton * PropertyMap< EdgeProperty, VertexProperty >::GetVertexFilteredSkeleton | ( | VertexFilterFunction && | _f | ) |
Compute the graph in terms of filter funtion then replace the old graph with the annotated one.
_f | Filter functor: Delete vertices for which function returns true. |
void PropertyMap< EdgeProperty, VertexProperty >::Write | ( | const std::string & | _file | ) |
Writes the graph to a file.
_file | the output file name. |
void PropertyMap< EdgeProperty, VertexProperty >::Read | ( | const std::string & | _file | ) |
Reads the graph from a file.
_file | the output file name. |