Skip to content

Commit 94ec13c

Browse files
committed
odb: fix naming in dbTechVia.h & dbTechViaLayerRule.h
Signed-off-by: Matt Liberty <[email protected]>
1 parent 72ef4f6 commit 94ec13c

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

src/odb/src/db/dbBox.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,8 +950,8 @@ dbBox* dbBox::create(dbTechVia* via_,
950950
}
951951

952952
// link box to via
953-
box->next_box_ = via->_boxes;
954-
via->_boxes = box->getOID();
953+
box->next_box_ = via->boxes_;
954+
via->boxes_ = box->getOID();
955955
return (dbBox*) box;
956956
}
957957

src/odb/src/db/dbBoxItr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void dbBoxItr<page_size>::reverse(dbObject* parent)
113113

114114
case dbTechViaObj: {
115115
_dbTechVia* via = (_dbTechVia*) parent;
116-
uint id = via->_boxes;
116+
uint id = via->boxes_;
117117
uint list = 0;
118118

119119
while (id != 0) {
@@ -124,7 +124,7 @@ void dbBoxItr<page_size>::reverse(dbObject* parent)
124124
id = n;
125125
}
126126

127-
via->_boxes = list;
127+
via->boxes_ = list;
128128
break;
129129
}
130130

@@ -237,7 +237,7 @@ uint dbBoxItr<page_size>::begin(dbObject* parent) const
237237

238238
case dbTechViaObj: {
239239
_dbTechVia* via = (_dbTechVia*) parent;
240-
return via->_boxes;
240+
return via->boxes_;
241241
}
242242

243243
case dbBPinObj: {

src/odb/src/db/dbTechVia.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ bool _dbTechVia::operator==(const _dbTechVia& rhs) const
6666
return false;
6767
}
6868

69-
if (_boxes != rhs._boxes) {
69+
if (boxes_ != rhs.boxes_) {
7070
return false;
7171
}
7272

@@ -109,7 +109,7 @@ _dbTechVia::_dbTechVia(_dbDatabase*, const _dbTechVia& v)
109109
name_(nullptr),
110110
pattern_(nullptr),
111111
bbox_(v.bbox_),
112-
_boxes(v._boxes),
112+
boxes_(v.boxes_),
113113
top_(v.top_),
114114
bottom_(v.bottom_),
115115
non_default_rule_(v.non_default_rule_),
@@ -155,7 +155,7 @@ dbOStream& operator<<(dbOStream& stream, const _dbTechVia& via)
155155
stream << via.resistance_;
156156
stream << via.name_;
157157
stream << via.bbox_;
158-
stream << via._boxes;
158+
stream << via.boxes_;
159159
stream << via.top_;
160160
stream << via.bottom_;
161161
stream << via.non_default_rule_;
@@ -173,7 +173,7 @@ dbIStream& operator>>(dbIStream& stream, _dbTechVia& via)
173173
stream >> via.resistance_;
174174
stream >> via.name_;
175175
stream >> via.bbox_;
176-
stream >> via._boxes;
176+
stream >> via.boxes_;
177177
stream >> via.top_;
178178
stream >> via.bottom_;
179179
stream >> via.non_default_rule_;
@@ -365,7 +365,7 @@ void dbTechVia::setViaParams(const dbViaParams& params)
365365
tech->box_tbl_->destroy(box);
366366
}
367367

368-
via->_boxes = 0U;
368+
via->boxes_ = 0U;
369369
via->via_params_ = params;
370370
via->top_ = params.top_layer_;
371371
via->bottom_ = params.bot_layer_;
@@ -421,7 +421,7 @@ dbTechVia* dbTechVia::clone(dbTechNonDefaultRule* rule_,
421421
via->flags_ = _invia->flags_;
422422
via->resistance_ = _invia->resistance_;
423423
via->bbox_ = _invia->bbox_;
424-
via->_boxes = _invia->_boxes;
424+
via->boxes_ = _invia->boxes_;
425425
via->top_ = _invia->top_;
426426
via->bottom_ = _invia->bottom_;
427427
via->non_default_rule_ = (rule) ? rule->getOID() : 0;

src/odb/src/db/dbTechVia.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class _dbTechVia : public _dbObject
4444
char* name_;
4545
char* pattern_;
4646
dbId<_dbBox> bbox_; // Caching the bbox speeds up defin imports.
47-
dbId<_dbBox> _boxes;
47+
dbId<_dbBox> boxes_;
4848
dbId<_dbTechLayer> top_; // Caching the layer speeds up defin imports.
4949
dbId<_dbTechLayer> bottom_; // Caching the layer speeds up defin imports.
5050
dbId<_dbTechNonDefaultRule> non_default_rule_;

src/odb/src/db/dbTechViaLayerRule.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ bool _dbTechViaLayerRule::operator==(const _dbTechViaLayerRule& rhs) const
9393
return false;
9494
}
9595

96-
if (_resistance != rhs._resistance) {
96+
if (resistance_ != rhs.resistance_) {
9797
return false;
9898
}
9999

@@ -119,7 +119,7 @@ _dbTechViaLayerRule::_dbTechViaLayerRule(_dbDatabase*,
119119
metal_overhang_(v.metal_overhang_),
120120
spacing_x_(v.spacing_x_),
121121
spacing_y_(v.spacing_y_),
122-
_resistance(v._resistance),
122+
resistance_(v.resistance_),
123123
rect_(v.rect_),
124124
layer_(v.layer_)
125125
{
@@ -144,7 +144,7 @@ _dbTechViaLayerRule::_dbTechViaLayerRule(_dbDatabase*)
144144
metal_overhang_ = 0;
145145
spacing_x_ = 0;
146146
spacing_y_ = 0;
147-
_resistance = 0.0;
147+
resistance_ = 0.0;
148148
}
149149

150150
_dbTechViaLayerRule::~_dbTechViaLayerRule()
@@ -163,7 +163,7 @@ dbOStream& operator<<(dbOStream& stream, const _dbTechViaLayerRule& v)
163163
stream << v.metal_overhang_;
164164
stream << v.spacing_x_;
165165
stream << v.spacing_y_;
166-
stream << v._resistance;
166+
stream << v.resistance_;
167167
stream << v.rect_;
168168
stream << v.layer_;
169169
return stream;
@@ -181,7 +181,7 @@ dbIStream& operator>>(dbIStream& stream, _dbTechViaLayerRule& v)
181181
stream >> v.metal_overhang_;
182182
stream >> v.spacing_x_;
183183
stream >> v.spacing_y_;
184-
stream >> v._resistance;
184+
stream >> v.resistance_;
185185
stream >> v.rect_;
186186
stream >> v.layer_;
187187
return stream;
@@ -348,13 +348,13 @@ void dbTechViaLayerRule::setResistance(double r)
348348
{
349349
_dbTechViaLayerRule* rule = (_dbTechViaLayerRule*) this;
350350
rule->flags_.has_resistance = 1;
351-
rule->_resistance = r;
351+
rule->resistance_ = r;
352352
}
353353

354354
double dbTechViaLayerRule::getResistance()
355355
{
356356
_dbTechViaLayerRule* rule = (_dbTechViaLayerRule*) this;
357-
return rule->_resistance;
357+
return rule->resistance_;
358358
}
359359

360360
dbTechViaLayerRule* dbTechViaLayerRule::create(dbTech* tech_,

src/odb/src/db/dbTechViaLayerRule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class _dbTechViaLayerRule : public _dbObject
5757
int metal_overhang_;
5858
int spacing_x_;
5959
int spacing_y_;
60-
double _resistance;
60+
double resistance_;
6161
Rect rect_;
6262
dbId<_dbTechLayer> layer_;
6363
};

0 commit comments

Comments
 (0)