From 8b3e49188c2345fc0b96e6740292ee12eb5d692b Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Wed, 13 Mar 2024 00:00:47 +0000 Subject: [PATCH] moving to string instead of std::string Signed-off-by: Ethan Mahintorabi --- include/sta/ConcreteLibrary.hh | 8 ++++---- include/sta/ConcreteNetwork.hh | 24 ++++++++++++------------ include/sta/Network.hh | 16 ++++++++-------- include/sta/SdcNetwork.hh | 8 ++++---- network/ConcreteLibrary.cc | 8 ++++---- network/ConcreteNetwork.cc | 24 ++++++++++++------------ network/SdcNetwork.cc | 8 ++++---- 7 files changed, 48 insertions(+), 48 deletions(-) diff --git a/include/sta/ConcreteLibrary.hh b/include/sta/ConcreteLibrary.hh index afad639d..bacd91a0 100644 --- a/include/sta/ConcreteLibrary.hh +++ b/include/sta/ConcreteLibrary.hh @@ -38,7 +38,7 @@ class LibertyCell; class LibertyPort; typedef Map ConcreteCellMap; -typedef Map AttributeMap; +typedef Map AttributeMap; typedef Vector ConcretePortSeq; typedef Map ConcretePortMap; typedef ConcreteCellMap::ConstIterator ConcreteLibraryCellIterator; @@ -106,9 +106,9 @@ public: ConcreteCellPortBitIterator *portBitIterator() const; bool isLeaf() const { return is_leaf_; } void setIsLeaf(bool is_leaf); - void setAttribute(const std::string &key, - const std::string &value); - std::string getAttribute(const std::string &key) const; + void setAttribute(const string &key, + const string &value); + string getAttribute(const string &key) const; // Cell acts as port factory. ConcretePort *makePort(const char *name); diff --git a/include/sta/ConcreteNetwork.hh b/include/sta/ConcreteNetwork.hh index e248ad06..06528214 100644 --- a/include/sta/ConcreteNetwork.hh +++ b/include/sta/ConcreteNetwork.hh @@ -38,7 +38,7 @@ class ConcreteBindingTbl; class ConcreteLibertyLibraryIterator; typedef Vector ConcreteLibrarySeq; -typedef Map AttributeMap; +typedef Map AttributeMap; typedef Map ConcreteLibraryMap; typedef ConcreteLibrarySeq::ConstIterator ConcreteLibraryIterator; typedef Map(cell); ccell->setAttribute(key, value); @@ -606,9 +606,9 @@ ConcreteNetwork::filename(const Cell *cell) return ccell->filename(); } -std::string +string ConcreteNetwork::getAttribute(const Cell *cell, - const std::string &key) const + const string &key) const { const ConcreteCell *ccell = reinterpret_cast(cell); return ccell->getAttribute(key); @@ -938,9 +938,9 @@ ConcreteNetwork::id(const Instance *instance) const return inst->id(); } -std::string +string ConcreteNetwork::getAttribute(const Instance *inst, - const std::string &key) const + const string &key) const { const ConcreteInstance *cinst = reinterpret_cast(inst); return cinst->getAttribute(key); @@ -1352,8 +1352,8 @@ ConcreteNetwork::connect(Instance *inst, void ConcreteNetwork::setAttribute(Instance *inst, - const std::string &key, - const std::string &value) + const string &key, + const string &value) { ConcreteInstance *cinst = reinterpret_cast(inst); cinst->setAttribute(key, value); @@ -1683,14 +1683,14 @@ ConcreteInstance::childIterator() const } void -ConcreteInstance::setAttribute(const std::string &key, - const std::string &value) +ConcreteInstance::setAttribute(const string &key, + const string &value) { attribute_map_.insert(key, value); } -std::string -ConcreteInstance::getAttribute(const std::string &key) const +string +ConcreteInstance::getAttribute(const string &key) const { if (attribute_map_.hasKey(key)) { return attribute_map_.findKey(key); diff --git a/network/SdcNetwork.cc b/network/SdcNetwork.cc index 00d7a07e..0973ed0c 100644 --- a/network/SdcNetwork.cc +++ b/network/SdcNetwork.cc @@ -122,9 +122,9 @@ NetworkNameAdapter::id(const Cell *cell) const return network_->id(cell); } -std::string +string NetworkNameAdapter::getAttribute(const Cell *cell, - const std::string &key) const + const string &key) const { return network_->getAttribute(cell, key); } @@ -334,9 +334,9 @@ NetworkNameAdapter::cell(const Instance *instance) const return network_->cell(instance); } -std::string +string NetworkNameAdapter::getAttribute(const Instance *inst, - const std::string &key) const + const string &key) const { return network_->getAttribute(inst, key); }