HOG2
|
#include <MapFlatAbstraction.h>
Public Member Functions | |
MapFlatAbstraction (Map *_m) | |
~MapFlatAbstraction () | |
virtual MapAbstraction * | Clone (Map *_m) |
return a new abstraction map of the same type as this map abstraction More... | |
virtual bool | Pathable (node *from, node *to) |
virtual void | VerifyHierarchy () |
verify that the hierarchy is consistent More... | |
virtual void | RemoveNode (node *n) |
remove node from abstraction More... | |
virtual void | RemoveEdge (edge *e, unsigned int absLevel) |
remove edge from abstraction More... | |
virtual void | AddNode (node *n) |
add node to abstraction More... | |
virtual void | AddEdge (edge *e, unsigned int absLevel) |
add edge to abstraction More... | |
virtual void | RepairAbstraction () |
This must be called after any of the above add/remove operations. More... | |
Private Member Functions | |
void | buildConnectivityGroups () |
Private Attributes | |
bool | groupsValid |
std::vector< int > | groups |
Definition at line 17 of file MapFlatAbstraction.h.
MapFlatAbstraction::MapFlatAbstraction | ( | Map * | _m | ) |
Definition at line 14 of file MapFlatAbstraction.cpp.
References GetMapGraph(), and groupsValid.
Referenced by Clone().
MapFlatAbstraction::~MapFlatAbstraction | ( | ) |
Definition at line 21 of file MapFlatAbstraction.cpp.
|
virtual |
add edge to abstraction
Definition at line 99 of file MapFlatAbstraction.cpp.
|
virtual |
add node to abstraction
Definition at line 86 of file MapFlatAbstraction.cpp.
|
private |
Definition at line 25 of file MapFlatAbstraction.cpp.
References node::getNeighborIter(), Graph::GetNode(), Graph::getNodeIter(), Graph::GetNumNodes(), groups, groupsValid, Graph::nodeIterNext(), and node::nodeNeighborNext().
Referenced by Pathable().
|
inlinevirtual |
return a new abstraction map of the same type as this map abstraction
Definition at line 22 of file MapFlatAbstraction.h.
References MapFlatAbstraction().
Definition at line 59 of file MapFlatAbstraction.cpp.
References buildConnectivityGroups(), node::GetNum(), groups, and groupsValid.
Referenced by generatePaths().
|
virtual |
remove edge from abstraction
Definition at line 81 of file MapFlatAbstraction.cpp.
|
virtual |
remove node from abstraction
Definition at line 75 of file MapFlatAbstraction.cpp.
|
virtual |
This must be called after any of the above add/remove operations.
But the operations can be stacked followed by a single RepairAbstraction call.
Definition at line 104 of file MapFlatAbstraction.cpp.
References groupsValid.
|
virtual |
verify that the hierarchy is consistent
Definition at line 71 of file MapFlatAbstraction.cpp.
|
private |
Definition at line 45 of file MapFlatAbstraction.h.
Referenced by buildConnectivityGroups(), and Pathable().
|
private |
Definition at line 44 of file MapFlatAbstraction.h.
Referenced by buildConnectivityGroups(), MapFlatAbstraction(), Pathable(), and RepairAbstraction().