@@ -93,7 +93,6 @@ class DeviceGrid {
9393 return root_loc;
9494 }
9595
96-
9796 // /@brief Returns a rectangle which represents the bounding box of the tile at the given location.
9897 inline vtr::Rect<int > get_tile_bb (const t_physical_tile_loc& tile_loc) const {
9998 t_physical_tile_type_ptr tile_type = get_physical_type (tile_loc);
@@ -108,7 +107,7 @@ class DeviceGrid {
108107
109108 // Forward const-iterator over (layer, x, y)
110109 class loc_const_iterator {
111- public:
110+ public:
112111 using value_type = t_physical_tile_loc;
113112 using difference_type = std::ptrdiff_t ;
114113 using iterator_category = std::forward_iterator_tag;
@@ -139,26 +138,25 @@ class DeviceGrid {
139138
140139 bool operator ==(const loc_const_iterator& o) const {
141140 return g_ == o.g_
142- && loc_.layer_num == o.loc_ .layer_num
143- && loc_.x == o.loc_ .x
144- && loc_.y == o.loc_ .y ;
141+ && loc_.layer_num == o.loc_ .layer_num
142+ && loc_.x == o.loc_ .x
143+ && loc_.y == o.loc_ .y ;
145144 }
146145 bool operator !=(const loc_const_iterator& o) const { return !(*this == o); }
147146
148- private:
147+ private:
149148 const DeviceGrid* g_ = nullptr ;
150149 t_physical_tile_loc loc_{0 , 0 , 0 };
151150 };
152151
153152 // / Iterate every (layer, x, y) location
154153 inline auto all_locations () const {
155154 return vtr::make_range (
156- loc_const_iterator (this , /* layer*/ 0 , /* x*/ 0 , /* y*/ 0 ),
157- loc_const_iterator (this , /* layer*/ get_num_layers (), /* x*/ 0 , /* y*/ 0 ) // end sentinel
155+ loc_const_iterator (this , /* layer*/ 0 , /* x*/ 0 , /* y*/ 0 ),
156+ loc_const_iterator (this , /* layer*/ get_num_layers (), /* x*/ 0 , /* y*/ 0 ) // end sentinel
158157 );
159158 }
160159
161-
162160 // /@brief Return the metadata of the tile at the specified location
163161 inline const t_metadata_dict* get_metadata (const t_physical_tile_loc& tile_loc) const {
164162 return grid_[tile_loc.layer_num ][tile_loc.x ][tile_loc.y ].meta ;
0 commit comments