From 47dc198d9fd173db613c54641ab610d70562c2b0 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sat, 17 Nov 2012 15:01:23 +0000 Subject: [PATCH] * ./vlsisapd/src/openChams: - Bug: DO NOT USES REFEENCES IN OBJECT ATTRIBUTES STRING: const std::string& _name; Cannot believe I've done that. Instead: std::string _name; --- vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h | 4 ++-- vlsisapd/src/openChams/src/vlsisapd/openChams/Device.h | 6 +++--- vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h | 8 ++++---- vlsisapd/src/openChams/src/vlsisapd/openChams/Port.h | 4 ++-- vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h | 8 ++++---- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h index 7b9d9c3b..1f995133 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h @@ -117,9 +117,9 @@ namespace OpenChams { void check_lowercase ( std::string& str, std::vector& compares, std::string message ); private: - const std::string& _name; + std::string _name; std::string _absolutePath; - const std::string& _techno; + std::string _techno; Parameters _params; Netlist* _netlist; Schematic* _schematic; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Device.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Device.h index 1db4cd13..93f36ae0 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Device.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Device.h @@ -32,7 +32,7 @@ namespace OpenChams { class Device : public Instance { - public: + public: Device ( const std::string& name , const std::string& model , unsigned order @@ -47,8 +47,8 @@ namespace OpenChams { inline const std::vector& getTransistors (); Transistor* addTransistor (const std::string&); - private: - const std::string _mosType; + private: + std::string _mosType; bool _sourceBulkConnected; std::vector _trans; }; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h index 1d1125c5..f6bf3754 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h @@ -36,8 +36,8 @@ namespace OpenChams { inline const std::string& getInstanceName () const; inline const std::string& getConnectorName() const; private: - const std::string& _instanceName; - const std::string& _connectorName; + std::string _instanceName; + std::string _connectorName; }; public: @@ -58,8 +58,8 @@ namespace OpenChams { inline const std::vector& getWires (); private: - const std::string& _name; - const std::string& _typeName; + std::string _name; + std::string _typeName; bool _isExternal; Netlist* _netlist; std::vector _connections; // diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Port.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Port.h index 53d00fe3..7b5bab36 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Port.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Port.h @@ -23,7 +23,7 @@ namespace OpenChams { class Port { - public: + public: inline Port ( const std::string& type , unsigned idx , double x @@ -35,7 +35,7 @@ namespace OpenChams { inline double getX () const; inline double getY () const; inline const std::string& getOrientation() const; - private: + private: std::string _type; unsigned _idx; double _x; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h index 56e61e16..915d120f 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h @@ -28,20 +28,20 @@ namespace OpenChams { class Schematic { - public: + public: class Infos { - public: + public: Infos (double x, double y, const std::string& orient); inline double getX (); inline double getY (); inline const std::string& getOrientation(); - private: + private: double _x; double _y; std::string _orient; }; - public: + public: Schematic ( Circuit* ); void addInstance ( const std::string& instanceName , double x