X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flibavoid%2Fgraph.h;h=c4de3df08d55dea3acb70de437612e475b2caed3;hb=74cb47e95220bd0140b3d40fd56063c73c364a0e;hp=080309d5271e779ef9f1eefa4ea70da60d67574b;hpb=e8325ddfe05ac8dd00fbf1e25a583ee33887c031;p=inkscape.git diff --git a/src/libavoid/graph.h b/src/libavoid/graph.h index 080309d52..c4de3df08 100644 --- a/src/libavoid/graph.h +++ b/src/libavoid/graph.h @@ -27,7 +27,6 @@ #include #include #include -using std::pair; #include "libavoid/vertices.h" namespace Avoid { @@ -45,15 +44,18 @@ class EdgeInf public: EdgeInf(VertInf *v1, VertInf *v2); ~EdgeInf(); - double getDist(void); + inline double getDist(void) + { + return _dist; + } void setDist(double dist); void alertConns(void); void addConn(bool *flag); void addCycleBlocker(void); void addBlocker(int b); - bool hasBlocker(int b); - pair ids(void); - pair points(void); + + std::pair ids(void); + std::pair points(void); void db_print(void); void checkVis(void); VertInf *otherVert(VertInf *vert); @@ -63,6 +65,7 @@ class EdgeInf EdgeInf *lstPrev; EdgeInf *lstNext; + int _blocker; private: Router *_router; bool _added; @@ -71,7 +74,6 @@ class EdgeInf VertInf *_v2; EdgeInfList::iterator _pos1; EdgeInfList::iterator _pos2; - ShapeList _blockers; FlagList _conns; double _dist;