Skip to content

Commit f5ef88f

Browse files
committed
odb: fix member naming in dbBox
Signed-off-by: Matt Liberty <[email protected]>
1 parent 6138cd3 commit f5ef88f

File tree

13 files changed

+350
-350
lines changed

13 files changed

+350
-350
lines changed

src/odb/src/db/dbBPin.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ void dbBPin::destroy(dbBPin* bpin_)
251251
dbId<_dbBox> nextBox = bpin->_boxes;
252252
while (nextBox) {
253253
_dbBox* b = block->_box_tbl->getPtr(nextBox);
254-
nextBox = b->_next_box;
254+
nextBox = b->next_box_;
255255
dbProperty::destroyProperties(b);
256-
block->remove_rect(b->_shape._rect);
256+
block->remove_rect(b->shape_.rect);
257257
block->_box_tbl->destroy(b);
258258
}
259259

@@ -294,7 +294,7 @@ void _dbBPin::removeBox(_dbBox* box)
294294
dbId<_dbBox> boxid = box->getOID();
295295
if (boxid == _boxes) {
296296
// at head of list, need to move head
297-
_boxes = box->_next_box;
297+
_boxes = box->next_box_;
298298
} else {
299299
// in the middle of the list, need to iterate and relink
300300
dbId<_dbBox> id = _boxes;
@@ -303,10 +303,10 @@ void _dbBPin::removeBox(_dbBox* box)
303303
}
304304
while (id != 0) {
305305
_dbBox* nbox = block->_box_tbl->getPtr(id);
306-
dbId<_dbBox> nid = nbox->_next_box;
306+
dbId<_dbBox> nid = nbox->next_box_;
307307

308308
if (nid == boxid) {
309-
nbox->_next_box = box->_next_box;
309+
nbox->next_box_ = box->next_box_;
310310
break;
311311
}
312312

src/odb/src/db/dbBlock.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,9 @@ void _dbBlock::initialize(_dbChip* chip,
564564
_name = safe_strdup(name);
565565

566566
_dbBox* box = _box_tbl->create();
567-
box->_flags._owner_type = dbBoxOwner::BLOCK;
568-
box->_owner = getOID();
569-
box->_shape._rect.reset(INT_MAX, INT_MAX, INT_MIN, INT_MIN);
567+
box->flags_.owner_type = dbBoxOwner::BLOCK;
568+
box->owner_ = getOID();
569+
box->shape_.rect.reset(INT_MAX, INT_MAX, INT_MIN, INT_MIN);
570570
_bbox = box->getOID();
571571
_chip = chip->getOID();
572572
_hier_delimiter = delimiter;
@@ -1108,15 +1108,15 @@ void _dbBlock::add_rect(const Rect& rect)
11081108
_dbBox* box = _box_tbl->getPtr(_bbox);
11091109

11101110
if (_flags._valid_bbox) {
1111-
box->_shape._rect.merge(rect);
1111+
box->shape_.rect.merge(rect);
11121112
}
11131113
}
11141114
void _dbBlock::add_oct(const Oct& oct)
11151115
{
11161116
_dbBox* box = _box_tbl->getPtr(_bbox);
11171117

11181118
if (_flags._valid_bbox) {
1119-
box->_shape._rect.merge(oct);
1119+
box->shape_.rect.merge(oct);
11201120
}
11211121
}
11221122

@@ -1125,7 +1125,7 @@ void _dbBlock::remove_rect(const Rect& rect)
11251125
_dbBox* box = _box_tbl->getPtr(_bbox);
11261126

11271127
if (_flags._valid_bbox) {
1128-
_flags._valid_bbox = box->_shape._rect.inside(rect);
1128+
_flags._valid_bbox = box->shape_.rect.inside(rect);
11291129
}
11301130
}
11311131

@@ -1496,12 +1496,12 @@ dbBox* dbBlock::getBBox()
14961496
void _dbBlock::ComputeBBox()
14971497
{
14981498
_dbBox* bbox = _box_tbl->getPtr(_bbox);
1499-
bbox->_shape._rect.reset(INT_MAX, INT_MAX, INT_MIN, INT_MIN);
1499+
bbox->shape_.rect.reset(INT_MAX, INT_MAX, INT_MIN, INT_MIN);
15001500

15011501
for (dbInst* inst : dbSet<dbInst>(this, _inst_tbl)) {
15021502
if (inst->isPlaced()) {
15031503
_dbBox* box = (_dbBox*) inst->getBBox();
1504-
bbox->_shape._rect.merge(box->_shape._rect);
1504+
bbox->shape_.rect.merge(box->shape_.rect);
15051505
}
15061506
}
15071507

@@ -1510,31 +1510,31 @@ void _dbBlock::ComputeBBox()
15101510
if (bp->getPlacementStatus().isPlaced()) {
15111511
for (dbBox* box : bp->getBoxes()) {
15121512
Rect r = box->getBox();
1513-
bbox->_shape._rect.merge(r);
1513+
bbox->shape_.rect.merge(r);
15141514
}
15151515
}
15161516
}
15171517
}
15181518

15191519
for (dbObstruction* obs : dbSet<dbObstruction>(this, _obstruction_tbl)) {
15201520
_dbBox* box = (_dbBox*) obs->getBBox();
1521-
bbox->_shape._rect.merge(box->_shape._rect);
1521+
bbox->shape_.rect.merge(box->shape_.rect);
15221522
}
15231523

15241524
for (dbSBox* box : dbSet<dbSBox>(this, _sbox_tbl)) {
15251525
Rect rect = box->getBox();
1526-
bbox->_shape._rect.merge(rect);
1526+
bbox->shape_.rect.merge(rect);
15271527
}
15281528

15291529
for (dbWire* wire : dbSet<dbWire>(this, _wire_tbl)) {
15301530
const auto opt_bbox = wire->getBBox();
15311531
if (opt_bbox) {
1532-
bbox->_shape._rect.merge(opt_bbox.value());
1532+
bbox->shape_.rect.merge(opt_bbox.value());
15331533
}
15341534
}
15351535

1536-
if (bbox->_shape._rect.xMin() == INT_MAX) { // empty block
1537-
bbox->_shape._rect.reset(0, 0, 0, 0);
1536+
if (bbox->shape_.rect.xMin() == INT_MAX) { // empty block
1537+
bbox->shape_.rect.reset(0, 0, 0, 0);
15381538
}
15391539

15401540
_flags._valid_bbox = 1;

src/odb/src/db/dbBlockage.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ dbBlockage* dbBlockage::create(dbBlock* block_,
209209
}
210210

211211
_dbBox* box = block->_box_tbl->create();
212-
box->_shape._rect.init(x1, y1, x2, y2);
213-
box->_flags._owner_type = dbBoxOwner::BLOCKAGE;
214-
box->_owner = bkg->getOID();
212+
box->shape_.rect.init(x1, y1, x2, y2);
213+
box->flags_.owner_type = dbBoxOwner::BLOCKAGE;
214+
box->owner_ = bkg->getOID();
215215
bkg->_bbox = box->getOID();
216216

217217
// Update bounding box of block
218218
_dbBox* bbox = (_dbBox*) block->_box_tbl->getPtr(block->_bbox);
219-
bbox->_shape._rect.merge(box->_shape._rect);
219+
bbox->shape_.rect.merge(box->shape_.rect);
220220
for (auto callback : block->_callbacks) {
221221
callback->inDbBlockageCreate((dbBlockage*) bkg);
222222
}

0 commit comments

Comments
 (0)