@@ -31,7 +31,7 @@ void SteinerTree::setTree(const stt::Tree& tree)
3131
3232 // Find driver steiner point.
3333 drvr_steiner_pt_ = null_pt;
34- const Point drvr_loc = drvr_location_;
34+ const odb:: Point drvr_loc = drvr_location_;
3535 const int drvr_x = drvr_loc.getX ();
3636 const int drvr_y = drvr_loc.getY ();
3737 const int branch_count = tree_.branchCount ();
@@ -51,7 +51,7 @@ SteinerTree::SteinerTree(const Pin* drvr_pin,
5151{
5252}
5353
54- SteinerTree::SteinerTree (Point drvr_location, Logger* logger)
54+ SteinerTree::SteinerTree (odb:: Point drvr_location, Logger* logger)
5555 : drvr_location_(drvr_location), logger_(logger)
5656{
5757}
@@ -75,25 +75,25 @@ int SteinerTree::branchCount() const
7575 return tree_.branchCount ();
7676}
7777
78- void SteinerTree::locAddPin (const Point& loc, const Pin* pin)
78+ void SteinerTree::locAddPin (const odb:: Point& loc, const Pin* pin)
7979{
8080 loc_pin_map_[loc].push_back (pin);
8181}
8282
8383void SteinerTree::branch (int index,
8484 // Return values.
85- Point& pt1,
85+ odb:: Point& pt1,
8686 int & steiner_pt1,
87- Point& pt2,
87+ odb:: Point& pt2,
8888 int & steiner_pt2,
8989 int & wire_length)
9090{
9191 stt::Branch& branch_pt1 = tree_.branch [index];
9292 steiner_pt1 = index;
9393 steiner_pt2 = branch_pt1.n ;
9494 stt::Branch& branch_pt2 = tree_.branch [steiner_pt2];
95- pt1 = Point (branch_pt1.x , branch_pt1.y );
96- pt2 = Point (branch_pt2.x , branch_pt2.y );
95+ pt1 = odb:: Point (branch_pt1.x , branch_pt1.y );
96+ pt2 = odb:: Point (branch_pt2.x , branch_pt2.y );
9797 wire_length
9898 = abs (branch_pt1.x - branch_pt2.x ) + abs (branch_pt1.y - branch_pt2.y );
9999}
@@ -153,10 +153,10 @@ SteinerPt SteinerTree::drvrPt() const
153153 return drvr_steiner_pt_;
154154}
155155
156- Point SteinerTree::location (const SteinerPt pt) const
156+ odb:: Point SteinerTree::location (const SteinerPt pt) const
157157{
158158 const stt::Branch branch_pt = tree_.branch [pt];
159- return Point (branch_pt.x , branch_pt.y );
159+ return odb:: Point (branch_pt.x , branch_pt.y );
160160}
161161
162162SteinerPt SteinerTree::top () const
@@ -279,8 +279,8 @@ int SteinerTree::distance(const SteinerPt from, const SteinerPt to) const
279279 if (from == to) {
280280 return 0 ;
281281 }
282- const Point from_pt = location (from);
283- const Point to_pt = location (to);
282+ const odb:: Point from_pt = location (from);
283+ const odb:: Point to_pt = location (to);
284284 const SteinerPt left_from = left (from);
285285 const SteinerPt right_from = right (from);
286286 if (left_from == to || right_from == to) {
@@ -315,15 +315,15 @@ const Pin* SteinerTree::pin(const SteinerPt pt) const
315315
316316// //////////////////////////////////////////////////////////////
317317
318- size_t PointHash::operator ()(const Point& pt) const
318+ size_t PointHash::operator ()(const odb:: Point& pt) const
319319{
320320 size_t hash = sta::hash_init_value;
321321 hashIncr (hash, pt.x ());
322322 hashIncr (hash, pt.y ());
323323 return hash;
324324}
325325
326- bool PointEqual::operator ()(const Point& pt1, const Point& pt2) const
326+ bool PointEqual::operator ()(const odb:: Point& pt1, const odb:: Point& pt2) const
327327{
328328 return pt1.x () == pt2.x () && pt1.y () == pt2.y ();
329329}
0 commit comments