torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NetlistPin.hpp
Go to the documentation of this file.
1 // Torc - Copyright 2011-2013 University of Southern California. All Rights Reserved.
2 // $HeadURL$
3 // $Id$
4 
5 // This program is free software: you can redistribute it and/or modify it under the terms of the
6 // GNU General Public License as published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
11 // the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program. If
14 // not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef TORC_PLACER_NETLISTPIN_HPP
17 #define TORC_PLACER_NETLISTPIN_HPP
18 
19 #include <string>
23 
24 namespace torc {
25 namespace placer {
26  class NetlistInstance;
27  class NetlistNet;
28 
29  class NetlistPin {
30  protected:
35  architecture::Sites::SitePin* mSitePin;
36 
37  public:
38  NetlistPin(std::string inName, bool inNetSource)
39  : mName(inName), mInstance(NULL), mNet(NULL), mIsNetSource(inNetSource) {}
41  {
42  }
44  return mName;
45  }
46  void setInstance(NetlistInstance* inInstance) {
47  mInstance = inInstance;
48  }
49  void setNet(NetlistNet* inNet) {
50  mNet = inNet;
51  }
53  return mInstance;
54  }
56  return mNet;
57  }
58  bool isNetSource() {
59  return mIsNetSource;
60  }
61  architecture::Sites::SitePin* getSitePin() {
62  return mSitePin;
63  }
64  void setSitePin(architecture::Sites::SitePin* inSitePin) {
65  mSitePin = inSitePin;
66  }
67  }; //class NetlistPin
68 } // namespace placer
69 } // namespace torc
70 #endif // TORC_PLACER_NETLISTPIN_HPP
std::string & getName()
Definition: NetlistPin.hpp:43
NetlistInstance * getInstance()
Definition: NetlistPin.hpp:52
Header for the Sites class.
void setInstance(NetlistInstance *inInstance)
Definition: NetlistPin.hpp:46
std::string string
NetlistPin(std::string inName, bool inNetSource)
Definition: NetlistPin.hpp:38
void setNet(NetlistNet *inNet)
Definition: NetlistPin.hpp:49
architecture::Sites::SitePin * getSitePin()
Definition: NetlistPin.hpp:61
architecture::Sites::SitePin * mSitePin
Definition: NetlistPin.hpp:35
NetlistInstance * mInstance
Definition: NetlistPin.hpp:32
NetlistNet * getNet()
Definition: NetlistPin.hpp:55
void setSitePin(architecture::Sites::SitePin *inSitePin)
Definition: NetlistPin.hpp:64