mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-06 09:17:17 +02:00
tidy round1
This commit is contained in:
+9
-13
@@ -94,7 +94,7 @@ class Network : public StaState
|
||||
{
|
||||
public:
|
||||
Network();
|
||||
virtual ~Network();
|
||||
~Network() override;
|
||||
virtual void clear();
|
||||
|
||||
// Linking the hierarchy creates the instance/pin/net network hierarchy.
|
||||
@@ -501,7 +501,7 @@ class NetworkEdit : public Network
|
||||
{
|
||||
public:
|
||||
NetworkEdit();
|
||||
virtual bool isEditable() const { return true; }
|
||||
bool isEditable() const override { return true; }
|
||||
virtual Instance *makeInstance(LibertyCell *cell,
|
||||
std::string_view name,
|
||||
Instance *parent) = 0;
|
||||
@@ -533,7 +533,6 @@ public:
|
||||
class NetworkReader : public NetworkEdit
|
||||
{
|
||||
public:
|
||||
NetworkReader() {}
|
||||
// Called before reading a netlist to delete any previously linked network.
|
||||
virtual void readNetlistBefore() = 0;
|
||||
virtual void setLinkFunc(LinkNetworkFunc link) = 0;
|
||||
@@ -599,8 +598,7 @@ linkReaderNetwork(Cell *top_cell,
|
||||
class ConstantPinIterator
|
||||
{
|
||||
public:
|
||||
ConstantPinIterator() {}
|
||||
virtual ~ConstantPinIterator() {}
|
||||
virtual ~ConstantPinIterator() = default;
|
||||
virtual bool hasNext() = 0;
|
||||
virtual void next(const Pin *&pin,
|
||||
LogicValue &value) = 0;
|
||||
@@ -613,9 +611,8 @@ public:
|
||||
NetworkConstantPinIterator(const Network *network,
|
||||
NetSet &zero_nets,
|
||||
NetSet &one_nets);
|
||||
virtual ~NetworkConstantPinIterator() {}
|
||||
virtual bool hasNext();
|
||||
virtual void next(const Pin *&pin, LogicValue &value);
|
||||
bool hasNext() override;
|
||||
void next(const Pin *&pin, LogicValue &value) override;
|
||||
|
||||
private:
|
||||
void findConstantPins(NetSet &nets,
|
||||
@@ -631,8 +628,7 @@ private:
|
||||
class HierPinThruVisitor
|
||||
{
|
||||
public:
|
||||
HierPinThruVisitor() {}
|
||||
virtual ~HierPinThruVisitor() {}
|
||||
virtual ~HierPinThruVisitor() = default;
|
||||
virtual void visit(const Pin *drvr,
|
||||
const Pin *load) = 0;
|
||||
};
|
||||
@@ -640,7 +636,7 @@ public:
|
||||
class PinVisitor
|
||||
{
|
||||
public:
|
||||
virtual ~PinVisitor() {}
|
||||
virtual ~PinVisitor() = default;
|
||||
virtual void operator()(const Pin *pin) = 0;
|
||||
};
|
||||
|
||||
@@ -652,7 +648,7 @@ public:
|
||||
PinSeq &loads,
|
||||
PinSeq &drvrs,
|
||||
const Network *network);
|
||||
virtual void operator()(const Pin *pin);
|
||||
void operator()(const Pin *pin) override;
|
||||
|
||||
protected:
|
||||
const Pin *drvr_pin_;
|
||||
@@ -675,4 +671,4 @@ visitDrvrLoadsThruNet(const Net *net,
|
||||
char
|
||||
logicValueString(LogicValue value);
|
||||
|
||||
} // namespace
|
||||
} // namespace sta
|
||||
|
||||
Reference in New Issue
Block a user