@@ -1034,7 +1034,7 @@ class dbBlock : public dbObject
10341034 // /
10351035 // / Get ext corner name by the index in ext Db
10361036 // /
1037- void getExtCornerName (int corner, char * cName );
1037+ std::string getExtCornerName (int corner);
10381038
10391039 // /
10401040 // / Get the index in ext Db by name
@@ -6863,8 +6863,7 @@ class dbViaParams : private _dbViaParams
68636863{
68646864 public:
68656865 dbViaParams ();
6866- dbViaParams (const dbViaParams& p);
6867- ~dbViaParams ();
6866+ dbViaParams (const dbViaParams& p) = default ;
68686867
68696868 int getXCutSize () const ;
68706869 int getYCutSize () const ;
@@ -10141,48 +10140,55 @@ class dbTechLayerCutSpacingTableDefRule : public dbObject
1014110140 bool isOppositeEnclosureResizeSpacingValid () const ;
1014210141
1014310142 // User Code Begin dbTechLayerCutSpacingTableDefRule
10144- void addPrlForAlignedCutEntry (std::string from, std::string to);
10143+ void addPrlForAlignedCutEntry (const std::string& from, const std::string& to);
1014510144
10146- void addCenterToCenterEntry (std::string from, std::string to);
10145+ void addCenterToCenterEntry (const std::string& from, const std::string& to);
1014710146
10148- void addCenterAndEdgeEntry (std::string from, std::string to);
10147+ void addCenterAndEdgeEntry (const std::string& from, const std::string& to);
1014910148
10150- void addPrlEntry (std::string from, std::string to, int ccPrl);
10149+ void addPrlEntry (const std::string& from, const std::string& to, int ccPrl);
1015110150
10152- void addEndExtensionEntry (std::string cls, int ext);
10151+ void addEndExtensionEntry (const std::string& cls, int ext);
1015310152
10154- void addSideExtensionEntry (std::string cls, int ext);
10153+ void addSideExtensionEntry (const std::string& cls, int ext);
1015510154
10156- void addExactElignedEntry (std::string cls, int spacing);
10155+ void addExactElignedEntry (const std::string& cls, int spacing);
1015710156
10158- void addNonOppEncSpacingEntry (std::string cls, int spacing);
10157+ void addNonOppEncSpacingEntry (const std::string& cls, int spacing);
1015910158
10160- void addOppEncSpacingEntry (std::string cls, int rsz1, int rsz2, int spacing);
10159+ void addOppEncSpacingEntry (const std::string& cls,
10160+ int rsz1,
10161+ int rsz2,
10162+ int spacing);
1016110163
1016210164 dbTechLayer* getSecondLayer () const ;
1016310165
10164- bool isCenterToCenter (std::string cutClass1, std::string cutClass2);
10166+ bool isCenterToCenter (const std::string& cutClass1,
10167+ const std::string& cutClass2);
1016510168
10166- bool isCenterAndEdge (std::string cutClass1, std::string cutClass2);
10169+ bool isCenterAndEdge (const std::string& cutClass1,
10170+ const std::string& cutClass2);
1016710171
10168- bool isPrlForAlignedCutClasses (std::string cutClass1, std::string cutClass2);
10172+ bool isPrlForAlignedCutClasses (const std::string& cutClass1,
10173+ const std::string& cutClass2);
1016910174
1017010175 int getPrlEntry (const std::string& cutClass1, const std::string& cutClass2);
1017110176
10172- void setSpacingTable (std::vector<std::vector<std::pair<int , int >>> table,
10173- std::map<std::string, uint> row_map,
10174- std::map<std::string, uint> col_map);
10177+ void setSpacingTable (
10178+ const std::vector<std::vector<std::pair<int , int >>>& table,
10179+ const std::map<std::string, uint>& row_map,
10180+ const std::map<std::string, uint>& col_map);
1017510181
1017610182 void getSpacingTable (std::vector<std::vector<std::pair<int , int >>>& table,
1017710183 std::map<std::string, uint>& row_map,
1017810184 std::map<std::string, uint>& col_map);
1017910185
1018010186 int getMaxSpacing (std::string cutClass, bool SIDE) const ;
1018110187
10182- int getExactAlignedSpacing (std::string cutClass) const ;
10188+ int getExactAlignedSpacing (const std::string& cutClass) const ;
1018310189
10184- int getMaxSpacing (std::string cutClass1,
10185- std::string cutClass2,
10190+ int getMaxSpacing (const std::string& cutClass1,
10191+ const std::string& cutClass2,
1018610192 LOOKUP_STRATEGY strategy = MAX) const ;
1018710193
1018810194 int getSpacing (std::string class1,
@@ -10208,7 +10214,7 @@ class dbTechLayerCutSpacingTableOrthRule : public dbObject
1020810214 void getSpacingTable (std::vector<std::pair<int , int >>& tbl) const ;
1020910215
1021010216 // User Code Begin dbTechLayerCutSpacingTableOrthRule
10211- void setSpacingTable (std::vector<std::pair<int , int >> tbl);
10217+ void setSpacingTable (const std::vector<std::pair<int , int >>& tbl);
1021210218
1021310219 static dbTechLayerCutSpacingTableOrthRule* create (dbTechLayer* parent);
1021410220
@@ -10503,7 +10509,7 @@ class dbTechLayerMinCutRule : public dbObject
1050310509
1050410510 // User Code Begin dbTechLayerMinCutRule
1050510511
10506- void setCutsPerCutClass (std::string cut_class, int num_cuts);
10512+ void setCutsPerCutClass (const std::string& cut_class, int num_cuts);
1050710513
1050810514 static dbTechLayerMinCutRule* create (dbTechLayer* layer);
1050910515
@@ -10930,17 +10936,17 @@ class dbTechLayerSpacingTablePrlRule : public dbObject
1093010936
1093110937 static void destroy (dbTechLayerSpacingTablePrlRule* rule);
1093210938
10933- void setTable (std::vector<int > width_tbl,
10934- std::vector<int > length_tbl,
10935- std::vector<std::vector<int >> spacing_tbl,
10936- std::map<uint, std::pair<int , int >> excluded_map);
10939+ void setTable (const std::vector<int >& width_tbl,
10940+ const std::vector<int >& length_tbl,
10941+ const std::vector<std::vector<int >>& spacing_tbl,
10942+ const std::map<uint, std::pair<int , int >>& excluded_map);
1093710943 void getTable (std::vector<int >& width_tbl,
1093810944 std::vector<int >& length_tbl,
1093910945 std::vector<std::vector<int >>& spacing_tbl,
1094010946 std::map<uint, std::pair<int , int >>& excluded_map);
1094110947
1094210948 void setSpacingTableInfluence (
10943- std::vector<std::tuple<int , int , int >> influence_tbl);
10949+ const std::vector<std::tuple<int , int , int >>& influence_tbl);
1094410950
1094510951 int getSpacing (int width, int length) const ;
1094610952
0 commit comments