diff --git a/vlsisapd/src/openChams/src/Circuit.cpp b/vlsisapd/src/openChams/src/Circuit.cpp index 6c8b7b6c..5bddf0f1 100644 --- a/vlsisapd/src/openChams/src/Circuit.cpp +++ b/vlsisapd/src/openChams/src/Circuit.cpp @@ -14,8 +14,15 @@ #include using namespace std; -#include "Circuit.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Circuit.h" +#include "vlsisapd/openChams/Netlist.h" +#include "vlsisapd/openChams/Instance.h" +#include "vlsisapd/openChams/Net.h" +#include "vlsisapd/openChams/Schematic.h" +#include "vlsisapd/openChams/Sizing.h" +#include "vlsisapd/openChams/Transistor.h" +#include "vlsisapd/openChams/Operator.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace { template T getValue(xmlChar* str) { diff --git a/vlsisapd/src/openChams/src/Instance.cpp b/vlsisapd/src/openChams/src/Instance.cpp index 0b53b396..a0b51c68 100644 --- a/vlsisapd/src/openChams/src/Instance.cpp +++ b/vlsisapd/src/openChams/src/Instance.cpp @@ -10,11 +10,11 @@ #include using namespace std; -#include "Instance.h" -#include "Netlist.h" -#include "Net.h" -#include "Transistor.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Instance.h" +#include "vlsisapd/openChams/Netlist.h" +#include "vlsisapd/openChams/Net.h" +#include "vlsisapd/openChams/Transistor.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { Instance::Instance(Name name, Name model, Name mosType, bool sourceBulkConnected, Netlist* netlist) diff --git a/vlsisapd/src/openChams/src/Name.cpp b/vlsisapd/src/openChams/src/Name.cpp index a9aca241..bcf83ccc 100644 --- a/vlsisapd/src/openChams/src/Name.cpp +++ b/vlsisapd/src/openChams/src/Name.cpp @@ -9,7 +9,7 @@ using namespace std; -#include "Name.h" +#include "vlsisapd/openChams/Name.h" namespace OpenChams { unsigned long Name::_globalId = 0; diff --git a/vlsisapd/src/openChams/src/Net.cpp b/vlsisapd/src/openChams/src/Net.cpp index 5cad40c4..4a081200 100644 --- a/vlsisapd/src/openChams/src/Net.cpp +++ b/vlsisapd/src/openChams/src/Net.cpp @@ -9,8 +9,8 @@ using namespace std; -#include "Net.h" -#include "Netlist.h" +#include "vlsisapd/openChams/Net.h" +#include "vlsisapd/openChams/Netlist.h" namespace OpenChams { Net::Net(Name netName, Name typeName, bool isExternal, Netlist* netlist) diff --git a/vlsisapd/src/openChams/src/Netlist.cpp b/vlsisapd/src/openChams/src/Netlist.cpp index 33bf51b6..53b20a5e 100644 --- a/vlsisapd/src/openChams/src/Netlist.cpp +++ b/vlsisapd/src/openChams/src/Netlist.cpp @@ -11,9 +11,11 @@ #include using namespace std; -#include "Netlist.h" -#include "Circuit.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Netlist.h" +#include "vlsisapd/openChams/Instance.h" +#include "vlsisapd/openChams/Net.h" +#include "vlsisapd/openChams/Circuit.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { Netlist::Netlist(Circuit* circuit) : _circuit(circuit) {} diff --git a/vlsisapd/src/openChams/src/Operator.cpp b/vlsisapd/src/openChams/src/Operator.cpp index 52f82cda..c52bd093 100644 --- a/vlsisapd/src/openChams/src/Operator.cpp +++ b/vlsisapd/src/openChams/src/Operator.cpp @@ -10,8 +10,8 @@ #include using namespace std; -#include "Operator.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Operator.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { Operator::Operator(Name operatorName, Name simulModel, unsigned callOrder) diff --git a/vlsisapd/src/openChams/src/Parameters.cpp b/vlsisapd/src/openChams/src/Parameters.cpp index ad96b6e6..1d2e2503 100644 --- a/vlsisapd/src/openChams/src/Parameters.cpp +++ b/vlsisapd/src/openChams/src/Parameters.cpp @@ -11,8 +11,9 @@ #include using namespace std; -#include "Parameters.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Name.h" +#include "vlsisapd/openChams/Parameters.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { double Parameters::getValue(Name name) { diff --git a/vlsisapd/src/openChams/src/Schematic.cpp b/vlsisapd/src/openChams/src/Schematic.cpp index ce938b2d..d566ad19 100644 --- a/vlsisapd/src/openChams/src/Schematic.cpp +++ b/vlsisapd/src/openChams/src/Schematic.cpp @@ -9,8 +9,8 @@ using namespace std; -#include "Schematic.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Schematic.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { Schematic::Schematic(Circuit* circuit, double zoom) diff --git a/vlsisapd/src/openChams/src/Sizing.cpp b/vlsisapd/src/openChams/src/Sizing.cpp index 82bede3c..83a68c27 100644 --- a/vlsisapd/src/openChams/src/Sizing.cpp +++ b/vlsisapd/src/openChams/src/Sizing.cpp @@ -10,10 +10,10 @@ #include using namespace std; -#include "Sizing.h" -#include "Circuit.h" -#include "Operator.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Sizing.h" +#include "vlsisapd/openChams/Circuit.h" +#include "vlsisapd/openChams/Operator.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { Sizing::Sizing(Circuit* circuit): _circuit(circuit) {} diff --git a/vlsisapd/src/openChams/src/Transistor.cpp b/vlsisapd/src/openChams/src/Transistor.cpp index ae5663ba..a439334e 100644 --- a/vlsisapd/src/openChams/src/Transistor.cpp +++ b/vlsisapd/src/openChams/src/Transistor.cpp @@ -10,10 +10,10 @@ #include using namespace std; -#include "Transistor.h" -#include "Instance.h" -#include "Net.h" -#include "OpenChamsException.h" +#include "vlsisapd/openChams/Transistor.h" +#include "vlsisapd/openChams/Instance.h" +#include "vlsisapd/openChams/Net.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { Transistor::Transistor(Name name, Instance* instance) diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h index 5d7b1657..e82483c2 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Circuit.h @@ -15,17 +15,18 @@ #include #include -#include "Name.h" -#include "Parameters.h" -#include "Netlist.h" -#include "Instance.h" -#include "Net.h" -#include "Schematic.h" -#include "Sizing.h" -#include "Transistor.h" -#include "Operator.h" +#include "vlsisapd/openChams/Name.h" +#include "vlsisapd/openChams/Parameters.h" namespace OpenChams { +class Netlist; +class Instance; +class Net; +class Schematic; +class Sizing; +class Transistor; +class Operator; + class Circuit { public: Circuit(Name name, Name techno); diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Instance.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Instance.h index b032f151..d907b3ae 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Instance.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Instance.h @@ -13,8 +13,8 @@ #include #include -#include "Name.h" -#include "Parameters.h" +#include "vlsisapd/openChams/Name.h" +#include "vlsisapd/openChams/Parameters.h" namespace OpenChams { class Netlist; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Name.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Name.h index c382bb44..3c45b55a 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Name.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Name.h @@ -13,7 +13,7 @@ #include #include -#include "OpenChamsException.h" +#include "vlsisapd/openChams/OpenChamsException.h" namespace OpenChams { class Name { diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h index 50b3d53a..be96a821 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Net.h @@ -12,8 +12,7 @@ #include -#include "Name.h" -#include "Instance.h" +#include "vlsisapd/openChams/Name.h" namespace OpenChams { class Netlist; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Netlist.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Netlist.h index 83fb1358..e9b868de 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Netlist.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Netlist.h @@ -12,12 +12,12 @@ #include -#include "Name.h" -#include "Instance.h" -#include "Net.h" - namespace OpenChams { +class Name; +class Instance; +class Net; class Circuit; + class Netlist { public: Netlist(Circuit*); @@ -28,13 +28,8 @@ class Netlist { Instance* getInstance(Name); Net* getNet(Name); - //pour parcourir les vector inline bool hasNoInstances(); inline bool hasNoNets(); - //inline vector::iterator getFirstInstanceIt(); - //inline vector::iterator getLastInstanceIt(); - //inline vector::iterator getFirstNetIt(); - //inline vector::iterator getLastNetIt(); inline const std::vector& getInstances(); inline const std::vector& getNets(); @@ -44,12 +39,8 @@ class Netlist { std::vector _nets; }; -inline bool Netlist::hasNoInstances() { return (_instances.size() == 0)? true : false; } -inline bool Netlist::hasNoNets() { return (_nets.size() == 0)? true : false; } -//inline vector::iterator Netlist::getFirstInstanceIt() { return _instances.begin(); } -//inline vector::iterator Netlist::getLastInstanceIt() { return _instances.end(); } -//inline vector::iterator Netlist::getFirstNetIt() { return _nets.begin(); } -//inline vector::iterator Netlist::getLastNetIt() { return _nets.end(); } +inline bool Netlist::hasNoInstances() { return (_instances.size() == 0)? true : false; } +inline bool Netlist::hasNoNets() { return (_nets.size() == 0)? true : false; } inline const std::vector& Netlist::getInstances() { return _instances; }; inline const std::vector& Netlist::getNets() { return _nets; }; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Operator.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Operator.h index b812f3fc..f57bca1b 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Operator.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Operator.h @@ -12,7 +12,7 @@ #include -#include "Name.h" +#include "vlsisapd/openChams/Name.h" namespace OpenChams { class Operator { diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Parameters.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Parameters.h index 3a8356df..5882f5ba 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Parameters.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Parameters.h @@ -12,9 +12,9 @@ #include -#include "Name.h" - namespace OpenChams { +class Name; + class Parameters { public: Parameters() {}; diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h index e3ecc1e7..8f56758c 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Schematic.h @@ -12,10 +12,11 @@ #include -#include "Name.h" +#include "vlsisapd/openChams/Name.h" namespace OpenChams { class Circuit; + class Schematic { public: class Infos { diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Sizing.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Sizing.h index 665e56f8..adf901b9 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Sizing.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Sizing.h @@ -12,12 +12,12 @@ #include -#include "Name.h" - namespace OpenChams { - class Circuit; - class Operator; - class Sizing { +class Name; +class Circuit; +class Operator; + +class Sizing { public: Sizing(Circuit*); diff --git a/vlsisapd/src/openChams/src/vlsisapd/openChams/Transistor.h b/vlsisapd/src/openChams/src/vlsisapd/openChams/Transistor.h index bf7ddd09..c8008668 100644 --- a/vlsisapd/src/openChams/src/vlsisapd/openChams/Transistor.h +++ b/vlsisapd/src/openChams/src/vlsisapd/openChams/Transistor.h @@ -13,13 +13,13 @@ #include -#include "Name.h" -#include "Parameters.h" +#include "vlsisapd/openChams/Name.h" +#include "vlsisapd/openChams/Parameters.h" namespace OpenChams { - class Instance; - class Net; - class Transistor { +class Instance; +class Net; +class Transistor { public: Transistor(Name, Instance*);