From 3038d09b27012b570dcb6df371173d2b8f95a348 Mon Sep 17 00:00:00 2001 From: EricLaoGitHub Date: Fri, 17 Jun 2016 17:47:48 +0200 Subject: [PATCH] Another temporary commit to merge with last version. --- anabatic/src/anabatic/Dijkstra.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/anabatic/src/anabatic/Dijkstra.h b/anabatic/src/anabatic/Dijkstra.h index 5a026288..ed03a3d7 100644 --- a/anabatic/src/anabatic/Dijkstra.h +++ b/anabatic/src/anabatic/Dijkstra.h @@ -44,6 +44,13 @@ namespace Anabatic { public: inline bool operator() ( const Vertex* lhs, const Vertex* rhs ); }; + public: + enum FlagR { NoRestriction = 0 + , NRestricted = (1<<0) + , SRestricted = (1<<1) + , ERestricted = (1<<2) + , WRestricted = (1<<3) + }; public: static DbU::Unit unreached; public: @@ -248,6 +255,8 @@ namespace Anabatic { bool _propagate ( Flags enabledSides ); void _selectFirstSource (); void _toWires (); + + bool isRestricted ( const Vertex* v1, const Vertex* v2 ) const; private: AnabaticEngine* _anabatic; vector _vertexes;