@@ -27,23 +27,23 @@ template class dbTable<_dbSBox>;
2727
2828bool _dbSBox::operator ==(const _dbSBox& rhs) const
2929{
30- if (_sflags. _wire_type != rhs._sflags . _wire_type ) {
30+ if (sflags_. wire_type != rhs.sflags_ . wire_type ) {
3131 return false ;
3232 }
3333
34- if (_sflags. _direction != rhs._sflags . _direction ) {
34+ if (sflags_. direction != rhs.sflags_ . direction ) {
3535 return false ;
3636 }
3737
38- if (_sflags. _via_bottom_mask != rhs._sflags . _via_bottom_mask ) {
38+ if (sflags_. via_bottom_mask != rhs.sflags_ . via_bottom_mask ) {
3939 return false ;
4040 }
4141
42- if (_sflags. _via_cut_mask != rhs._sflags . _via_cut_mask ) {
42+ if (sflags_. via_cut_mask != rhs.sflags_ . via_cut_mask ) {
4343 return false ;
4444 }
4545
46- if (_sflags. _via_top_mask != rhs._sflags . _via_top_mask ) {
46+ if (sflags_. via_top_mask != rhs.sflags_ . via_top_mask ) {
4747 return false ;
4848 }
4949
@@ -56,23 +56,23 @@ bool _dbSBox::operator==(const _dbSBox& rhs) const
5656
5757int _dbSBox::equal (const _dbSBox& rhs) const
5858{
59- if (_sflags. _wire_type != rhs._sflags . _wire_type ) {
59+ if (sflags_. wire_type != rhs.sflags_ . wire_type ) {
6060 return false ;
6161 }
6262
63- if (_sflags. _direction != rhs._sflags . _direction ) {
63+ if (sflags_. direction != rhs.sflags_ . direction ) {
6464 return false ;
6565 }
6666
67- if (_sflags. _via_bottom_mask != rhs._sflags . _via_bottom_mask ) {
67+ if (sflags_. via_bottom_mask != rhs.sflags_ . via_bottom_mask ) {
6868 return false ;
6969 }
7070
71- if (_sflags. _via_cut_mask != rhs._sflags . _via_cut_mask ) {
71+ if (sflags_. via_cut_mask != rhs.sflags_ . via_cut_mask ) {
7272 return false ;
7373 }
7474
75- if (_sflags. _via_top_mask != rhs._sflags . _via_top_mask ) {
75+ if (sflags_. via_top_mask != rhs.sflags_ . via_top_mask ) {
7676 return false ;
7777 }
7878
@@ -81,43 +81,43 @@ int _dbSBox::equal(const _dbSBox& rhs) const
8181
8282bool _dbSBox::operator <(const _dbSBox& rhs) const
8383{
84- if (_sflags. _wire_type < rhs._sflags . _wire_type ) {
84+ if (sflags_. wire_type < rhs.sflags_ . wire_type ) {
8585 return true ;
8686 }
8787
88- if (_sflags. _direction < rhs._sflags . _direction ) {
88+ if (sflags_. direction < rhs.sflags_ . direction ) {
8989 return true ;
9090 }
9191
92- if (_sflags. _via_bottom_mask < rhs._sflags . _via_bottom_mask ) {
92+ if (sflags_. via_bottom_mask < rhs.sflags_ . via_bottom_mask ) {
9393 return true ;
9494 }
9595
96- if (_sflags. _via_cut_mask < rhs._sflags . _via_cut_mask ) {
96+ if (sflags_. via_cut_mask < rhs.sflags_ . via_cut_mask ) {
9797 return true ;
9898 }
9999
100- if (_sflags. _via_top_mask < rhs._sflags . _via_top_mask ) {
100+ if (sflags_. via_top_mask < rhs.sflags_ . via_top_mask ) {
101101 return true ;
102102 }
103103
104- if (_sflags. _wire_type > rhs._sflags . _wire_type ) {
104+ if (sflags_. wire_type > rhs.sflags_ . wire_type ) {
105105 return false ;
106106 }
107107
108- if (_sflags. _direction > rhs._sflags . _direction ) {
108+ if (sflags_. direction > rhs.sflags_ . direction ) {
109109 return false ;
110110 }
111111
112- if (_sflags. _via_bottom_mask > rhs._sflags . _via_bottom_mask ) {
112+ if (sflags_. via_bottom_mask > rhs.sflags_ . via_bottom_mask ) {
113113 return false ;
114114 }
115115
116- if (_sflags. _via_cut_mask > rhs._sflags . _via_cut_mask ) {
116+ if (sflags_. via_cut_mask > rhs.sflags_ . via_cut_mask ) {
117117 return false ;
118118 }
119119
120- if (_sflags. _via_top_mask > rhs._sflags . _via_top_mask ) {
120+ if (sflags_. via_top_mask > rhs.sflags_ . via_top_mask ) {
121121 return false ;
122122 }
123123
@@ -133,13 +133,13 @@ bool _dbSBox::operator<(const _dbSBox& rhs) const
133133dbWireShapeType dbSBox::getWireShapeType () const
134134{
135135 const _dbSBox* box = (const _dbSBox*) this ;
136- return dbWireShapeType (box->_sflags . _wire_type );
136+ return dbWireShapeType (box->sflags_ . wire_type );
137137}
138138
139139dbSBox::Direction dbSBox::getDirection () const
140140{
141141 const _dbSBox* box = (const _dbSBox*) this ;
142- return (dbSBox::Direction) box->_sflags . _direction ;
142+ return (dbSBox::Direction) box->sflags_ . direction ;
143143}
144144
145145dbSWire* dbSBox::getSWire () const
@@ -156,26 +156,26 @@ Oct dbSBox::getOct() const
156156uint dbSBox::getViaBottomLayerMask () const
157157{
158158 const _dbSBox* box = (const _dbSBox*) this ;
159- return box->_sflags . _via_bottom_mask ;
159+ return box->sflags_ . via_bottom_mask ;
160160}
161161
162162uint dbSBox::getViaCutLayerMask () const
163163{
164164 const _dbSBox* box = (const _dbSBox*) this ;
165- return box->_sflags . _via_cut_mask ;
165+ return box->sflags_ . via_cut_mask ;
166166}
167167
168168uint dbSBox::getViaTopLayerMask () const
169169{
170170 const _dbSBox* box = (const _dbSBox*) this ;
171- return box->_sflags . _via_top_mask ;
171+ return box->sflags_ . via_top_mask ;
172172}
173173
174174bool dbSBox::hasViaLayerMasks () const
175175{
176176 const _dbSBox* box = (const _dbSBox*) this ;
177- return box->_sflags . _via_bottom_mask != 0 || box->_sflags . _via_cut_mask != 0
178- || box->_sflags . _via_top_mask != 0 ;
177+ return box->sflags_ . via_bottom_mask != 0 || box->sflags_ . via_cut_mask != 0
178+ || box->sflags_ . via_top_mask != 0 ;
179179}
180180
181181void dbSBox::setViaLayerMask (const uint bottom, const uint cut, const uint top)
@@ -185,9 +185,9 @@ void dbSBox::setViaLayerMask(const uint bottom, const uint cut, const uint top)
185185 box->checkMask (cut);
186186 box->checkMask (top);
187187
188- box->_sflags . _via_bottom_mask = bottom;
189- box->_sflags . _via_cut_mask = cut;
190- box->_sflags . _via_top_mask = top;
188+ box->sflags_ . via_bottom_mask = bottom;
189+ box->sflags_ . via_cut_mask = cut;
190+ box->sflags_ . via_top_mask = top;
191191}
192192
193193dbSBox* dbSBox::create (dbSWire* wire_,
@@ -248,8 +248,8 @@ dbSBox* dbSBox::create(dbSWire* wire_,
248248 block->add_rect (box->shape_ .rect );
249249 }
250250
251- box->_sflags . _wire_type = type.getValue ();
252- box->_sflags . _direction = dir;
251+ box->sflags_ . wire_type = type.getValue ();
252+ box->sflags_ . direction = dir;
253253
254254 wire->addSBox (box);
255255
@@ -281,7 +281,7 @@ dbSBox* dbSBox::create(dbSWire* wire_,
281281 box->flags_ .is_block_via = 1 ;
282282 box->flags_ .via_id = via->getOID ();
283283 box->flags_ .octilinear = false ;
284- box->_sflags . _wire_type = type.getValue ();
284+ box->sflags_ . wire_type = type.getValue ();
285285
286286 wire->addSBox (box);
287287
@@ -315,7 +315,7 @@ dbSBox* dbSBox::create(dbSWire* wire_,
315315 box->flags_ .is_tech_via = 1 ;
316316 box->flags_ .via_id = via->getOID ();
317317 box->flags_ .octilinear = false ;
318- box->_sflags . _wire_type = type.getValue ();
318+ box->sflags_ . wire_type = type.getValue ();
319319
320320 wire->addSBox (box);
321321
@@ -407,32 +407,32 @@ std::vector<dbSBox*> dbSBox::smashVia()
407407}
408408
409409_dbSBox::_dbSBox (_dbDatabase* db, const _dbSBox& b)
410- : _dbBox(db, b), _sflags (b._sflags )
410+ : _dbBox(db, b), sflags_ (b.sflags_ )
411411{
412412}
413413
414414_dbSBox::_dbSBox (_dbDatabase* db) : _dbBox(db)
415415{
416- _sflags. _wire_type = dbWireShapeType::COREWIRE;
417- _sflags. _direction = 0 ;
418- _sflags. _via_bottom_mask = 0 ;
419- _sflags. _via_cut_mask = 0 ;
420- _sflags. _via_top_mask = 0 ;
421- _sflags. _spare_bits = 0 ;
416+ sflags_. wire_type = dbWireShapeType::COREWIRE;
417+ sflags_. direction = 0 ;
418+ sflags_. via_bottom_mask = 0 ;
419+ sflags_. via_cut_mask = 0 ;
420+ sflags_. via_top_mask = 0 ;
421+ sflags_. spare_bits = 0 ;
422422}
423423
424424dbOStream& operator <<(dbOStream& stream, const _dbSBox& box)
425425{
426426 stream << (_dbBox&) box;
427- uint* bit_field = (uint*) &box._sflags ;
427+ uint* bit_field = (uint*) &box.sflags_ ;
428428 stream << *bit_field;
429429 return stream;
430430}
431431
432432dbIStream& operator >>(dbIStream& stream, _dbSBox& box)
433433{
434434 stream >> (_dbBox&) box;
435- uint* bit_field = (uint*) &box._sflags ;
435+ uint* bit_field = (uint*) &box.sflags_ ;
436436 stream >> *bit_field;
437437 return stream;
438438}
0 commit comments