![]() |
Parasol Planning Library (PPL)
|
#include <PropertyMap.h>
Public Types | |
Local Types | |
typedef WorkspaceSkeleton | GraphType |
Graph type is a directed multiedge graph of points and paths. More... | |
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 |
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. More... | |
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) |
Property map of the workspace skeleton.
To use just edge property map, use default vertex property.
typedef GraphType::adj_edge_iterator PropertyMap< EdgeProperty, VertexProperty >::adj_edge_iterator |
typedef WorkspaceSkeleton::ED PropertyMap< EdgeProperty, VertexProperty >::ED |
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.
typedef unordered_map<ED, EdgeProperty, edgeHash> PropertyMap< EdgeProperty, VertexProperty >::EdgeMapType |
typedef WorkspaceSkeleton PropertyMap< EdgeProperty, VertexProperty >::GraphType |
Graph type is a directed multiedge graph of points and paths.
typedef WorkspaceSkeleton::VD PropertyMap< EdgeProperty, VertexProperty >::VD |
typedef GraphType::vertex_iterator PropertyMap< EdgeProperty, VertexProperty >::vertex_iterator |
typedef function<bool(VertexProperty&)> PropertyMap< EdgeProperty, VertexProperty >::VertexFilterFunction |
typedef unordered_map<VD, VertexProperty> PropertyMap< EdgeProperty, VertexProperty >::VertexMapType |
|
default |
|
inline |
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. |
|
inline |
EdgeProperty & PropertyMap< EdgeProperty, VertexProperty >::GetEdgeProperty | ( | const ED & | _e | ) |
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. |
|
inline |
VertexProperty & PropertyMap< EdgeProperty, VertexProperty >::GetVertexProperty | ( | const VD & | _v | ) |
void PropertyMap< EdgeProperty, VertexProperty >::Read | ( | const std::string & | _file | ) |
Reads the graph from a file.
_file | the output file name. |
|
inline |
void PropertyMap< EdgeProperty, VertexProperty >::SetEdgeProperty | ( | const ED & | _e, |
const EdgeProperty & | _ep | ||
) |
|
inline |
|
inline |
void PropertyMap< EdgeProperty, VertexProperty >::SetVertexProperty | ( | const VD & | _v, |
const VertexProperty & | _vp | ||
) |
Individual accessors.
void PropertyMap< EdgeProperty, VertexProperty >::Write | ( | const std::string & | _file | ) |
Writes the graph to a file.
_file | the output file name. |