torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::placer::DeviceSite Class Reference

#include <DeviceSite.hpp>

+ Collaboration diagram for torc::placer::DeviceSite:

Public Member Functions

 DeviceSite (const std::string &inName, int inSiteTypeIndex, int inTileIndex, int inRow, int inCol)
 
 ~DeviceSite ()
 
void setInstance (NetlistInstance *instptr)
 
NetlistInstancegetInstance ()
 
const std::string & getName ()
 
int getSiteTypeIndex ()
 
int getTileIndex ()
 
int getRow ()
 
int getCol ()
 
void addPin (std::string inName, int inRow, int inCol)
 
int getNumPins ()
 
DeviceSitePingetPin (int i)
 

Protected Attributes

NetlistInstancemInstance
 
const std::string & mName
 
int mSiteTypeIndex
 
int mTileIndex
 
DeviceSitePinPtrVector mPins
 
int mRow
 
int mCol
 

Private Types

typedef std::vector
< DeviceSitePin * > 
DeviceSitePinPtrVector
 

Detailed Description

Definition at line 29 of file DeviceSite.hpp.

Member Typedef Documentation

Definition at line 30 of file DeviceSite.hpp.

Constructor & Destructor Documentation

torc::placer::DeviceSite::DeviceSite ( const std::string &  inName,
int  inSiteTypeIndex,
int  inTileIndex,
int  inRow,
int  inCol 
)
inline

Definition at line 52 of file DeviceSite.hpp.

53  : mInstance(NULL),
54  mName(inName), mSiteTypeIndex(inSiteTypeIndex), mTileIndex(inTileIndex), mRow(inRow),
55  mCol(inCol) {}
NetlistInstance * mInstance
Definition: DeviceSite.hpp:32
const std::string & mName
Definition: DeviceSite.hpp:33
torc::placer::DeviceSite::~DeviceSite ( )
inline

Definition at line 56 of file DeviceSite.hpp.

56 {}

Member Function Documentation

void torc::placer::DeviceSite::addPin ( std::string  inName,
int  inRow,
int  inCol 
)
inline

Definition at line 78 of file DeviceSite.hpp.

78  {
79  DeviceSitePin* pin = new DeviceSitePin(inName, inRow, inCol);
80  mPins.push_back(pin); // this is a nasty thing, copying this around, but probably
81  // don't matter, only to initialize the thing
82  }
DeviceSitePinPtrVector mPins
Definition: DeviceSite.hpp:37
int torc::placer::DeviceSite::getCol ( void  )
inline

Definition at line 75 of file DeviceSite.hpp.

75  {
76  return mCol;
77  }
NetlistInstance* torc::placer::DeviceSite::getInstance ( void  )
inline

Definition at line 60 of file DeviceSite.hpp.

60  {
61  return mInstance;
62  }
NetlistInstance * mInstance
Definition: DeviceSite.hpp:32
const std::string& torc::placer::DeviceSite::getName ( void  )
inline

Definition at line 63 of file DeviceSite.hpp.

63  {
64  return mName;
65  }
const std::string & mName
Definition: DeviceSite.hpp:33
int torc::placer::DeviceSite::getNumPins ( )
inline

Definition at line 83 of file DeviceSite.hpp.

83  {
84  return mPins.size();
85  }
DeviceSitePinPtrVector mPins
Definition: DeviceSite.hpp:37
DeviceSitePin* torc::placer::DeviceSite::getPin ( int  i)
inline

Definition at line 86 of file DeviceSite.hpp.

86  {
87  return mPins[i];
88  }
DeviceSitePinPtrVector mPins
Definition: DeviceSite.hpp:37
int torc::placer::DeviceSite::getRow ( void  )
inline

Definition at line 72 of file DeviceSite.hpp.

72  {
73  return mRow;
74  }
int torc::placer::DeviceSite::getSiteTypeIndex ( )
inline

Definition at line 66 of file DeviceSite.hpp.

66  {
67  return mSiteTypeIndex;
68  }
int torc::placer::DeviceSite::getTileIndex ( )
inline

Definition at line 69 of file DeviceSite.hpp.

69  {
70  return mTileIndex;
71  }
void torc::placer::DeviceSite::setInstance ( NetlistInstance instptr)
inline

Definition at line 57 of file DeviceSite.hpp.

57  {
58  mInstance = instptr;
59  }
NetlistInstance * mInstance
Definition: DeviceSite.hpp:32

Field Documentation

int torc::placer::DeviceSite::mCol
protected

Definition at line 41 of file DeviceSite.hpp.

NetlistInstance* torc::placer::DeviceSite::mInstance
protected

Definition at line 32 of file DeviceSite.hpp.

const std::string& torc::placer::DeviceSite::mName
protected

Definition at line 33 of file DeviceSite.hpp.

DeviceSitePinPtrVector torc::placer::DeviceSite::mPins
protected

Definition at line 37 of file DeviceSite.hpp.

int torc::placer::DeviceSite::mRow
protected

Definition at line 40 of file DeviceSite.hpp.

int torc::placer::DeviceSite::mSiteTypeIndex
protected

Definition at line 34 of file DeviceSite.hpp.

int torc::placer::DeviceSite::mTileIndex
protected

Definition at line 35 of file DeviceSite.hpp.


The documentation for this class was generated from the following file: