diff options
Diffstat (limited to 'src/lib/netlist/tools/nl_convert.h')
-rw-r--r-- | src/lib/netlist/tools/nl_convert.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/netlist/tools/nl_convert.h b/src/lib/netlist/tools/nl_convert.h index 6c8765e7d16..13af926a5af 100644 --- a/src/lib/netlist/tools/nl_convert.h +++ b/src/lib/netlist/tools/nl_convert.h @@ -60,10 +60,10 @@ private: explicit net_t(pstring aname) : m_name(std::move(aname)), m_no_export(false) {} - const pstring &name() { return m_name;} - std::vector<pstring> &terminals() { return m_terminals; } + const pstring &name() const { return m_name;} + std::vector<pstring> &terminals(){ return m_terminals; } void set_no_export() { m_no_export = true; } - bool is_no_export() { return m_no_export; } + bool is_no_export() const { return m_no_export; } private: pstring m_name; @@ -98,13 +98,13 @@ private: , m_has_val(false) {} - const pstring &name() { return m_name;} - const pstring &type() { return m_type;} - const pstring &model() { return m_model;} - double value() { return m_val;} + const pstring &name() const { return m_name;} + const pstring &type() const { return m_type;} + const pstring &model() const { return m_model;} + double value() const { return m_val;} - bool has_model() { return m_model != ""; } - bool has_value() { return m_has_val; } + bool has_model() const { return m_model != ""; } + bool has_value() const { return m_has_val; } private: pstring m_type; @@ -126,8 +126,8 @@ private: pin_alias_t(pstring name, pstring alias) : m_name(std::move(name)), m_alias(std::move(alias)) {} - const pstring &name() { return m_name; } - const pstring &alias() { return m_alias; } + const pstring &name() const { return m_name; } + const pstring &alias() const { return m_alias; } private: pstring m_name; pstring m_alias; |