mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-07 03:24:32 +02:00
Adding optional to differentiate between empty sets and unset attributes
Signed-off-by: Ethan Mahintorabi <[email protected]>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
|
||||
#include "Vector.hh"
|
||||
#include "Map.hh"
|
||||
@@ -108,7 +109,7 @@ public:
|
||||
void setIsLeaf(bool is_leaf);
|
||||
void setAttribute(const std::string &key,
|
||||
const std::string &value);
|
||||
std::string getAttribute(const std::string &key) const;
|
||||
std::optional<std::string> getAttribute(const std::string &key) const;
|
||||
|
||||
// Cell acts as port factory.
|
||||
ConcretePort *makePort(const char *name);
|
||||
|
||||
Reference in New Issue
Block a user