Skip to content

Commit 4c4d8e7

Browse files
committed
odb: fix naming in dbTechLayerSpacingRule.h
Signed-off-by: Matt Liberty <[email protected]>
1 parent b850d2f commit 4c4d8e7

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

src/odb/src/db/dbTechLayerSpacingRule.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ bool _dbTechLayerSpacingRule::operator==(
102102
bool _dbTechV55InfluenceEntry::operator==(
103103
const _dbTechV55InfluenceEntry& rhs) const
104104
{
105-
if (_width != rhs._width) {
105+
if (width_ != rhs.width_) {
106106
return false;
107107
}
108108

109-
if (_within != rhs._within) {
109+
if (within_ != rhs.within_) {
110110
return false;
111111
}
112112

113-
if (_spacing != rhs._spacing) {
113+
if (spacing_ != rhs.spacing_) {
114114
return false;
115115
}
116116

@@ -166,17 +166,17 @@ dbIStream& operator>>(dbIStream& stream, _dbTechLayerSpacingRule& rule)
166166
dbOStream& operator<<(dbOStream& stream,
167167
const _dbTechV55InfluenceEntry& infitem)
168168
{
169-
stream << infitem._width;
170-
stream << infitem._within;
171-
stream << infitem._spacing;
169+
stream << infitem.width_;
170+
stream << infitem.within_;
171+
stream << infitem.spacing_;
172172
return stream;
173173
}
174174

175175
dbIStream& operator>>(dbIStream& stream, _dbTechV55InfluenceEntry& infitem)
176176
{
177-
stream >> infitem._width;
178-
stream >> infitem._within;
179-
stream >> infitem._spacing;
177+
stream >> infitem.width_;
178+
stream >> infitem.within_;
179+
stream >> infitem.spacing_;
180180
return stream;
181181
}
182182

@@ -769,9 +769,9 @@ bool dbTechV55InfluenceEntry::getV55InfluenceEntry(uint& width,
769769
uint& spacing) const
770770
{
771771
_dbTechV55InfluenceEntry* _v55ie = (_dbTechV55InfluenceEntry*) this;
772-
width = _v55ie->_width;
773-
within = _v55ie->_within;
774-
spacing = _v55ie->_spacing;
772+
width = _v55ie->width_;
773+
within = _v55ie->within_;
774+
spacing = _v55ie->spacing_;
775775
return true;
776776
}
777777

@@ -780,9 +780,9 @@ void dbTechV55InfluenceEntry::setV55InfluenceEntry(const uint& width,
780780
const uint& spacing)
781781
{
782782
_dbTechV55InfluenceEntry* _v55ie = (_dbTechV55InfluenceEntry*) this;
783-
_v55ie->_width = width;
784-
_v55ie->_within = within;
785-
_v55ie->_spacing = spacing;
783+
_v55ie->width_ = width;
784+
_v55ie->within_ = within;
785+
_v55ie->spacing_ = spacing;
786786
}
787787

788788
void dbTechV55InfluenceEntry::writeLef(lefout& writer) const

src/odb/src/db/dbTechLayerSpacingRule.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ dbIStream& operator>>(dbIStream& stream, _dbTechLayerSpacingRule& rule);
120120
class _dbTechV55InfluenceEntry : public _dbObject
121121
{
122122
public:
123-
uint _width;
124-
uint _within;
125-
uint _spacing;
123+
uint width_;
124+
uint within_;
125+
uint spacing_;
126126

127127
_dbTechV55InfluenceEntry(_dbDatabase* db, const _dbTechV55InfluenceEntry& e);
128128
_dbTechV55InfluenceEntry(_dbDatabase* db);
@@ -138,16 +138,16 @@ class _dbTechV55InfluenceEntry : public _dbObject
138138
inline _dbTechV55InfluenceEntry::_dbTechV55InfluenceEntry(
139139
_dbDatabase* /* unused: db */,
140140
const _dbTechV55InfluenceEntry& e)
141-
: _width(e._width), _within(e._within), _spacing(e._spacing)
141+
: width_(e.width_), within_(e.within_), spacing_(e.spacing_)
142142
{
143143
}
144144

145145
inline _dbTechV55InfluenceEntry::_dbTechV55InfluenceEntry(
146146
_dbDatabase* /* unused: db */)
147147
{
148-
_width = 0;
149-
_within = 0;
150-
_spacing = 0;
148+
width_ = 0;
149+
within_ = 0;
150+
spacing_ = 0;
151151
}
152152

153153
inline _dbTechV55InfluenceEntry::~_dbTechV55InfluenceEntry()

0 commit comments

Comments
 (0)