torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DeviceSitePin.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_DEVICESITEPIN_HPP
17 #define TORC_PLACER_DEVICESITEPIN_HPP
18 
20 #include <string>
21 
22 namespace torc {
23 namespace placer {
25  {
26  // types
28  protected:
30 
32  int mRow; // for the sitepin, we have actual row and column locations for distance calculation
33  int mCol;
34  //int mTileOffset; // these offsets tell you where the pin actually lives relative to the tile index of the site
35 
36  public:
37  DeviceSitePin(std::string& inName, int inRow, int inCol) :
38  mName(inName), mRow(inRow), mCol(inCol) {}
41  return mName;
42  }
43  int getRow() {
44  return mRow;
45  }
46  int getCol() {
47  return mCol;
48  }
50  return mTilewire;
51  }
52 
53  }; //class DeviceSitePin
54 } // namespace placer
55 } // namespace torc
56 #endif // TORC_PLACER_DEVICESITEPIN_HPP
architecture::Tilewire Tilewire
std::string string
Encapsulation of a device tile and wire pair.
Definition: Tilewire.hpp:39
DeviceSitePin(std::string &inName, int inRow, int inCol)
Header for the Tilewire class.