MCPcopy Create free account
hub / github.com/KLayout/klayout / rename

Method rename

src/db/db/dbLibrary.cc:166–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void
167Library::rename (const std::string &name)
168{
169 if (name != get_name () && db::LibraryManager::initialized ()) {
170
171 std::pair<bool, lib_id_type> n2l = db::LibraryManager::instance ().lib_by_name (name, get_technologies ());
172 if (n2l.first && n2l.second != get_id ()) {
173 // remove any existing library that has our target name/tech combination
174 db::LibraryManager::instance ().delete_lib (db::LibraryManager::instance ().lib (n2l.second));
175 }
176
177 db::LibraryManager::instance ().rename (get_id (), name);
178
179 }
180}
181
182void
183Library::refresh ()

Callers 15

Build_pymod_wheelFunction · 0.45
CheckPkgDirectoryFunction · 0.45
MakeTargetDMGFileFunction · 0.45
HidePrivateDirFunction · 0.45
ShowPrivateDirFunction · 0.45
Build_pymod_wheelFunction · 0.45
CheckPkgDirectoryFunction · 0.45
MakeTargetDMGFileFunction · 0.45
_call_f_rename_3942Function · 0.45
_call_f_rename_2025Function · 0.45
_call_f_rename_2025Function · 0.45

Calls 7

get_nameFunction · 0.85
initializedFunction · 0.85
get_idFunction · 0.85
lib_by_nameMethod · 0.80
delete_libMethod · 0.80
libMethod · 0.80
instanceFunction · 0.70