|
MIRA
|
#include <topomap/TopoMap.h>
Public Member Functions | |
| TopoMap () | |
| template<typename Reflector > | |
| void | reflect (Reflector &r) |
| void | clear () |
| removes all content and starts with an empty graph More... | |
| NodePtr | getRoot () |
| template<typename Visitor > | |
| void | visitNodes (Visitor &&visitor) |
| Calls the operator()(NodePtr node) of the given visitor for each node (recurses the tree recursively in depth-first order) More... | |
| GraphElementPtr | findElement (const std::string &predicate) |
| Returns the graph element with the given predicate, or NULL if no such element exists. More... | |
| const GraphElementPtr | findElement (const std::string &predicate) const |
| NodePtr | createNode (NodePtr parent=NodePtr()) |
| GatewayNodePtr | createGatewayNode (NodePtr node) |
| LinkPtr | createLink (GatewayNodePtr from, GatewayNodePtr to, bool bidirektional=true, double costs=0.0) |
| void | dumpGraphviz (std::ostream &os, bool hideIntraLinks=false) |
Static Public Member Functions | |
| static TopoMapPtr | create () |
| static NodePtr | lowestCommonAncestor (NodePtr m, NodePtr n) |
| Returns the lowest common ancestor of the two nodes, or rises an XLogical exception, if both nodes are not part of the same TopoMap. More... | |
| TopoMap | ( | ) |
|
inlinestatic |
|
inline |
| void clear | ( | ) |
removes all content and starts with an empty graph
|
inline |
|
inline |
Calls the operator()(NodePtr node) of the given visitor for each node (recurses the tree recursively in depth-first order)
| GraphElementPtr findElement | ( | const std::string & | predicate | ) |
Returns the graph element with the given predicate, or NULL if no such element exists.
| const GraphElementPtr findElement | ( | const std::string & | predicate | ) | const |
Returns the lowest common ancestor of the two nodes, or rises an XLogical exception, if both nodes are not part of the same TopoMap.
| GatewayNodePtr createGatewayNode | ( | NodePtr | node | ) |
| LinkPtr createLink | ( | GatewayNodePtr | from, |
| GatewayNodePtr | to, | ||
| bool | bidirektional = true, |
||
| double | costs = 0.0 |
||
| ) |
| void dumpGraphviz | ( | std::ostream & | os, |
| bool | hideIntraLinks = false |
||
| ) |
1.8.14