* ./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;
This commit is contained in:
Jean-Paul Chaput 2012-11-17 15:01:23 +00:00
parent 0a4297e84d
commit 47dc198d9f
5 changed files with 15 additions and 15 deletions

View File

@ -117,9 +117,9 @@ namespace OpenChams {
void check_lowercase ( std::string& str, std::vector<std::string>& 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;

View File

@ -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<Transistor*>& getTransistors ();
Transistor* addTransistor (const std::string&);
private:
const std::string _mosType;
private:
std::string _mosType;
bool _sourceBulkConnected;
std::vector<Transistor*> _trans;
};

View File

@ -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<Wire*>& getWires ();
private:
const std::string& _name;
const std::string& _typeName;
std::string _name;
std::string _typeName;
bool _isExternal;
Netlist* _netlist;
std::vector<Net::Connection*> _connections; // <instanceName, connectorName>

View File

@ -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;

View File

@ -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