00001 // Torc - Copyright 2011 University of Southern California. All Rights Reserved. 00002 // $HeadURL: https://torc-isi.svn.sourceforge.net/svnroot/torc-isi/branches/staging/0.9/src/torc/placer/DeviceSiteTypePin.hpp $ 00003 // $Id: DeviceSiteTypePin.hpp 10 2011-10-12 18:40:16Z nsteiner $ 00004 00005 // This program is free software: you can redistribute it and/or modify it under the terms of the 00006 // GNU General Public License as published by the Free Software Foundation, either version 3 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00010 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 00011 // the GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License along with this program. If 00014 // not, see <http://www.gnu.org/licenses/>. 00015 00016 /// \file 00017 /// \brief Header for the DeviceSiteTypePin class. 00018 00019 #ifndef TORC_PLACER_DEVICESITETYPEPIN_HPP 00020 #define TORC_PLACER_DEVICESITETYPEPIN_HPP 00021 00022 #include <string> 00023 00024 namespace torc { 00025 namespace placer { 00026 00027 class DeviceSiteTypePin { 00028 protected: 00029 std::string mName; 00030 00031 int mRowOffset; // these offsets tell you where the pin actually lives relative to the tile index of the site 00032 int mColOffset; 00033 //int mTileOffset; // these offsets tell you where the pin actually lives relative to the tile index of the site 00034 00035 public: 00036 DeviceSiteTypePin(std::string& inName, int inRowOffset, int inColOffset) : 00037 mName(inName), mRowOffset(inRowOffset), mColOffset(inColOffset) 00038 //PlacerSiteTypePin(std::string& inName, int inTileOffset) : 00039 // mName(inName), mTileOffset(inTileOffset) 00040 { } 00041 ~DeviceSiteTypePin() {} 00042 std::string& getName() { 00043 return mName; 00044 } 00045 //int getOffset() { 00046 // return mTileOffset; 00047 //} 00048 int getRowOffset() { 00049 return mRowOffset; 00050 } 00051 int getColOffset() { 00052 return mColOffset; 00053 } 00054 00055 }; //class DeviceSiteTypePin 00056 } // namespace placer 00057 } // namespace torc 00058 #endif // TORC_PLACER_DEVICESITETYPEPIN_HPP