#include <Graph.h>
|
| using | GraphType = std::map< Node *, std::set< Node * > > |
| |
| using | iterator = typename GraphType::iterator |
| |
|
| template<typename GraphNode > |
| std::ostream & | operator<< (std::ostream &OS, const Graph< GraphNode > &G) |
| |
◆ GraphType
template<typename Node >
| using spatial::Graph< Node >::GraphType = std::map<Node *, std::set<Node *> > |
◆ iterator
◆ begin()
◆ end()
◆ erase()
erase - Erases the node Node
◆ getPointee()
getPointee - Returns a set of pointee for a given Node. Returns an empty set if Node does not point to anyone
◆ getUniquePointee()
getUniquePointee - Returns the unique pointee for a given Node. Returns null set if Node does not point to anyone or points to more than one node
◆ hasEdgeBetween()
template<typename Node >
| bool spatial::Graph< Node >::hasEdgeBetween |
( |
Node * |
Src, |
|
|
Node * |
Dest |
|
) |
| |
hasEdgeBetween - Returns true if there is a edge between Src and Dest
Implementation -—
◆ insert() [1/3]
insert - Inserts an direct edge between Src andp Dest. Returns false if the edge already existed
◆ insert() [2/3]
template<typename Node >
| void spatial::Graph< Node >::insert |
( |
Node * |
Src, |
|
|
Node * |
Dest, |
|
|
int |
Left, |
|
|
int |
Right |
|
) |
| |
insert - Inserts an edge between Src and Dest based on Left and Right. Left and Right denotes the level of redirection in LHS and RHS respectively example a = b is denoted by (1, 1) and a = &b by (1, 0). Only a = b, a = &b, a = *b and *a = b supported right now, TODO support more
◆ insert() [3/3]
template<typename Node >
| void spatial::Graph< Node >::insert |
( |
Node * |
N, |
|
|
std::set< Node * > |
Pointee |
|
) |
| |
insert - Directly inserts pointee set Pointee for node Node
◆ merge()
merge - Merges the Graphs from Graphs
◆ operator<()
◆ operator==()
◆ operator<<
template<typename Node >
template<typename GraphNode >
| std::ostream & operator<< |
( |
std::ostream & |
OS, |
|
|
const Graph< GraphNode > & |
G |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: