Adapt all files to new source tree

This commit is contained in:
Damien Dupuis 2010-06-03 15:05:14 +00:00
parent 73eba62347
commit 6663fbd8dc
20 changed files with 72 additions and 70 deletions

View File

@ -14,8 +14,15 @@
#include <algorithm>
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<class T> T getValue(xmlChar* str) {

View File

@ -10,11 +10,11 @@
#include <iostream>
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)

View File

@ -9,7 +9,7 @@
using namespace std;
#include "Name.h"
#include "vlsisapd/openChams/Name.h"
namespace OpenChams {
unsigned long Name::_globalId = 0;

View File

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

View File

@ -11,9 +11,11 @@
#include <algorithm>
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) {}

View File

@ -10,8 +10,8 @@
#include <string>
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)

View File

@ -11,8 +11,9 @@
#include <string>
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) {

View File

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

View File

@ -10,10 +10,10 @@
#include <string>
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) {}

View File

@ -10,10 +10,10 @@
#include <iostream>
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)

View File

@ -15,17 +15,18 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#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);

View File

@ -13,8 +13,8 @@
#include <map>
#include <vector>
#include "Name.h"
#include "Parameters.h"
#include "vlsisapd/openChams/Name.h"
#include "vlsisapd/openChams/Parameters.h"
namespace OpenChams {
class Netlist;

View File

@ -13,7 +13,7 @@
#include <string>
#include <map>
#include "OpenChamsException.h"
#include "vlsisapd/openChams/OpenChamsException.h"
namespace OpenChams {
class Name {

View File

@ -12,8 +12,7 @@
#include <vector>
#include "Name.h"
#include "Instance.h"
#include "vlsisapd/openChams/Name.h"
namespace OpenChams {
class Netlist;

View File

@ -12,12 +12,12 @@
#include <vector>
#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<Instance*>::iterator getFirstInstanceIt();
//inline vector<Instance*>::iterator getLastInstanceIt();
//inline vector<Net*>::iterator getFirstNetIt();
//inline vector<Net*>::iterator getLastNetIt();
inline const std::vector<Instance*>& getInstances();
inline const std::vector<Net*>& getNets();
@ -44,12 +39,8 @@ class Netlist {
std::vector<Net*> _nets;
};
inline bool Netlist::hasNoInstances() { return (_instances.size() == 0)? true : false; }
inline bool Netlist::hasNoNets() { return (_nets.size() == 0)? true : false; }
//inline vector<Instance*>::iterator Netlist::getFirstInstanceIt() { return _instances.begin(); }
//inline vector<Instance*>::iterator Netlist::getLastInstanceIt() { return _instances.end(); }
//inline vector<Net*>::iterator Netlist::getFirstNetIt() { return _nets.begin(); }
//inline vector<Net*>::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<Instance*>& Netlist::getInstances() { return _instances; };
inline const std::vector<Net*>& Netlist::getNets() { return _nets; };

View File

@ -12,7 +12,7 @@
#include <map>
#include "Name.h"
#include "vlsisapd/openChams/Name.h"
namespace OpenChams {
class Operator {

View File

@ -12,9 +12,9 @@
#include <map>
#include "Name.h"
namespace OpenChams {
class Name;
class Parameters {
public:
Parameters() {};

View File

@ -12,10 +12,11 @@
#include <map>
#include "Name.h"
#include "vlsisapd/openChams/Name.h"
namespace OpenChams {
class Circuit;
class Schematic {
public:
class Infos {

View File

@ -12,12 +12,12 @@
#include <map>
#include "Name.h"
namespace OpenChams {
class Circuit;
class Operator;
class Sizing {
class Name;
class Circuit;
class Operator;
class Sizing {
public:
Sizing(Circuit*);

View File

@ -13,13 +13,13 @@
#include <map>
#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*);