Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions search/Property.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1312,71 +1312,71 @@ Properties::defineProperty(std::string property,
std::function<PropertyValue (const Library *lib,
Sta *sta)> handler)
{
registry_library_.defineProperty(property, handler);
registry_library_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const LibertyLibrary *lib,
Sta *sta)> handler)
{
registry_liberty_library_.defineProperty(property, handler);
registry_liberty_library_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const Cell *cell,
Sta *sta)> handler)
{
registry_cell_.defineProperty(property, handler);
registry_cell_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const LibertyCell *cell,
Sta *sta)> handler)
{
registry_liberty_cell_.defineProperty(property, handler);
registry_liberty_cell_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const Port *Port,
Sta *sta)> handler)
{
registry_port_.defineProperty(property, handler);
registry_port_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const LibertyPort *port,
Sta *sta)> handler)
{
registry_liberty_port_.defineProperty(property, handler);
registry_liberty_port_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const Instance *inst,
Sta *sta)> handler)
{
registry_instance_.defineProperty(property, handler);
registry_instance_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const Pin *pin,
Sta *sta)> handler)
{
registry_pin_.defineProperty(property, handler);
registry_pin_.defineProperty(std::move(property), handler);
}

void
Properties::defineProperty(std::string property,
std::function<PropertyValue (const Net *net,
Sta *sta)> handler)
{
registry_net_.defineProperty(property, handler);
registry_net_.defineProperty(std::move(property), handler);
}

////////////////////////////////////////////////////////////////
Expand All @@ -1402,7 +1402,7 @@ PropertyRegistry<TYPE>::defineProperty(const std::string property,
std::function<PropertyValue (TYPE object,
Sta *sta)> handler)
{
registry_[property] = handler;
registry_[std::move(property)] = handler;
}

} // namespace