Skip to content

Commit 29c821e

Browse files
committed
odb: fix naming in dbDatabase.h
Signed-off-by: Matt Liberty <[email protected]>
1 parent f57190e commit 29c821e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/odb/src/db/dbDatabase.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool _dbDatabase::operator==(const _dbDatabase& rhs) const
9292
if (chip_hash_ != rhs.chip_hash_) {
9393
return false;
9494
}
95-
if (*_prop_tbl != *rhs._prop_tbl) {
95+
if (*prop_tbl_ != *rhs.prop_tbl_) {
9696
return false;
9797
}
9898
if (*chip_inst_tbl_ != *rhs.chip_inst_tbl_) {
@@ -155,7 +155,7 @@ _dbDatabase::_dbDatabase(_dbDatabase* db)
155155
chip_tbl_ = new dbTable<_dbChip, 2>(
156156
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable, dbChipObj);
157157
chip_hash_.setTable(chip_tbl_);
158-
_prop_tbl = new dbTable<_dbProperty>(
158+
prop_tbl_ = new dbTable<_dbProperty>(
159159
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable, dbPropertyObj);
160160
chip_inst_tbl_ = new dbTable<_dbChipInst>(
161161
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable, dbChipInstObj);
@@ -194,7 +194,7 @@ _dbDatabase::_dbDatabase(_dbDatabase* db)
194194
name_cache_ = new _dbNameCache(
195195
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable);
196196

197-
prop_itr_ = new dbPropertyItr(_prop_tbl);
197+
prop_itr_ = new dbPropertyItr(prop_tbl_);
198198

199199
chip_inst_itr_ = new dbChipInstItr(chip_inst_tbl_);
200200

@@ -258,7 +258,7 @@ dbIStream& operator>>(dbIStream& stream, _dbDatabase& obj)
258258
if (obj.isSchema(db_schema_gds_lib_in_block)) {
259259
stream >> *obj.gds_lib_tbl_;
260260
}
261-
stream >> *obj._prop_tbl;
261+
stream >> *obj.prop_tbl_;
262262
stream >> *obj.name_cache_;
263263
if (obj.isSchema(db_schema_chip_hash_table)) {
264264
stream >> obj.chip_hash_;
@@ -308,7 +308,7 @@ dbIStream& operator>>(dbIStream& stream, _dbDatabase& obj)
308308
// Fix up the owner id of properties of this db, this value changes.
309309
const uint oid = obj.getId();
310310

311-
for (_dbProperty* p : dbSet<_dbProperty>(&obj, obj._prop_tbl)) {
311+
for (_dbProperty* p : dbSet<_dbProperty>(&obj, obj.prop_tbl_)) {
312312
p->owner_ = oid;
313313
}
314314

@@ -346,7 +346,7 @@ dbOStream& operator<<(dbOStream& stream, const _dbDatabase& obj)
346346
stream << *obj.lib_tbl_;
347347
stream << *obj.chip_tbl_;
348348
stream << *obj.gds_lib_tbl_;
349-
stream << NamedTable("prop_tbl", obj._prop_tbl);
349+
stream << NamedTable("prop_tbl", obj.prop_tbl_);
350350
stream << *obj.name_cache_;
351351
stream << obj.chip_hash_;
352352
stream << *obj.chip_inst_tbl_;
@@ -365,7 +365,7 @@ dbObjectTable* _dbDatabase::getObjectTable(dbObjectType type)
365365
case dbChipObj:
366366
return chip_tbl_;
367367
case dbPropertyObj:
368-
return _prop_tbl;
368+
return prop_tbl_;
369369
case dbChipInstObj:
370370
return chip_inst_tbl_;
371371
case dbChipRegionInstObj:
@@ -398,7 +398,7 @@ void _dbDatabase::collectMemInfo(MemInfo& info)
398398

399399
chip_tbl_->collectMemInfo(info.children["chip_tbl_"]);
400400

401-
_prop_tbl->collectMemInfo(info.children["_prop_tbl"]);
401+
prop_tbl_->collectMemInfo(info.children["_prop_tbl"]);
402402

403403
chip_inst_tbl_->collectMemInfo(info.children["chip_inst_tbl_"]);
404404

@@ -421,7 +421,7 @@ void _dbDatabase::collectMemInfo(MemInfo& info)
421421
_dbDatabase::~_dbDatabase()
422422
{
423423
delete chip_tbl_;
424-
delete _prop_tbl;
424+
delete prop_tbl_;
425425
delete chip_inst_tbl_;
426426
delete chip_region_inst_tbl_;
427427
delete chip_conn_tbl_;
@@ -469,13 +469,13 @@ _dbDatabase::_dbDatabase(_dbDatabase* /* unused: db */, int id)
469469
lib_tbl_ = new dbTable<_dbLib>(
470470
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable, dbLibObj);
471471

472-
_prop_tbl = new dbTable<_dbProperty>(
472+
prop_tbl_ = new dbTable<_dbProperty>(
473473
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable, dbPropertyObj);
474474

475475
name_cache_ = new _dbNameCache(
476476
this, this, (GetObjTbl_t) &_dbDatabase::getObjectTable);
477477

478-
prop_itr_ = new dbPropertyItr(_prop_tbl);
478+
prop_itr_ = new dbPropertyItr(prop_tbl_);
479479

480480
chip_inst_itr_ = new dbChipInstItr(chip_inst_tbl_);
481481

@@ -539,7 +539,7 @@ dbChip* dbDatabase::findChip(const char* name) const
539539
dbSet<dbProperty> dbDatabase::getProperties() const
540540
{
541541
_dbDatabase* obj = (_dbDatabase*) this;
542-
return dbSet<dbProperty>(obj, obj->_prop_tbl);
542+
return dbSet<dbProperty>(obj, obj->prop_tbl_);
543543
}
544544

545545
dbSet<dbChipInst> dbDatabase::getChipInsts() const

src/odb/src/db/dbDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ class _dbDatabase : public _dbObject
301301
uint dbu_per_micron_;
302302
dbTable<_dbChip, 2>* chip_tbl_;
303303
dbHashTable<_dbChip, 2> chip_hash_;
304-
dbTable<_dbProperty>* _prop_tbl;
304+
dbTable<_dbProperty>* prop_tbl_;
305305
dbTable<_dbChipInst>* chip_inst_tbl_;
306306
dbTable<_dbChipRegionInst>* chip_region_inst_tbl_;
307307
dbTable<_dbChipConn>* chip_conn_tbl_;

src/odb/src/db/dbProperty.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ dbTable<_dbProperty>* _dbProperty::getPropTable(dbObject* object)
259259
switch (object->getObjectType()) {
260260
case dbDatabaseObj: {
261261
_dbDatabase* db = (_dbDatabase*) object;
262-
return db->_prop_tbl;
262+
return db->prop_tbl_;
263263
}
264264

265265
case dbChipObj: {

0 commit comments

Comments
 (0)