#include <Net.h>
Collaboration diagram for parquetfp::pin:
Public Member Functions | |
pin (const char *name, bool type, double xoffset, double yoffset, int netIndex) | |
pin () | |
bool | getType () const |
char * | getName (void) |
int | getNodeIndex () const |
int | getNetIndex () const |
void | putNodeIndex (int nodeIndex) |
void | putNetIndex (int netIndex) |
void | putType (bool type) |
double | getXOffset (void) const |
double | getYOffset (void) const |
double | getOrigXOffset (void) const |
double | getOrigYOffset (void) const |
ORIENT | getOrient (void) const |
void | changeOrient (ORIENT newOrient) |
Private Attributes | |
Point | _origOffset |
Point | _offset |
ORIENT | _orient |
string | _name |
bool | _type |
int | _nodeIndex |
int | _netIndex |
|
Definition at line 74 of file Net.h. References _name, _netIndex, _offset, _orient, _origOffset, _type, parquetfp::N, parquetfp::Point::x, and parquetfp::Point::y.
00075 :_type(type) 00076 { 00077 //strncpy(_name,name,199); 00078 //_name[199] = '\0'; 00079 _name = name; 00080 _origOffset.x=xoffset; 00081 _origOffset.y=yoffset; 00082 _offset.x=xoffset; 00083 _offset.y=yoffset; 00084 _orient=N; 00085 _netIndex=netIndex; 00086 } |
|
Definition at line 87 of file Net.h.
00088 { 00089 } |
|
Definition at line 44 of file Net.cxx. References _offset, _orient, _origOffset, parquetfp::E, parquetfp::FE, parquetfp::FN, parquetfp::FS, parquetfp::FW, parquetfp::N, parquetfp::S, parquetfp::W, parquetfp::Point::x, and parquetfp::Point::y. Referenced by parquetfp::Node::changeOrient(), and parquetfp::Node::syncOrient().
00045 { 00046 _orient = newOrient; 00047 if(newOrient == N) 00048 { 00049 _offset.x = _origOffset.x; 00050 _offset.y = _origOffset.y; 00051 } 00052 else if(newOrient == E) 00053 { 00054 _offset.x = _origOffset.y; 00055 _offset.y = -1*_origOffset.x; 00056 } 00057 else if(newOrient == S) 00058 { 00059 _offset.x = -1*_origOffset.x; 00060 _offset.y = -1*_origOffset.y; 00061 } 00062 else if(newOrient == W) 00063 { 00064 _offset.x = -1*_origOffset.y; 00065 _offset.y = _origOffset.x; 00066 } 00067 else if(newOrient == FN) 00068 { 00069 _offset.x = -1*_origOffset.x; 00070 _offset.y = _origOffset.y; 00071 } 00072 else if(newOrient == FE) 00073 { 00074 _offset.x = _origOffset.y; 00075 _offset.y = _origOffset.x; 00076 } 00077 else if(newOrient == FS) 00078 { 00079 _offset.x = _origOffset.x; 00080 _offset.y = -1*_origOffset.y; 00081 } 00082 else if(newOrient == FW) 00083 { 00084 _offset.x = -1*_origOffset.y; 00085 _offset.y = -1*_origOffset.x; 00086 } 00087 else 00088 { 00089 cout<<"ERROR in changeOrient "<<endl; 00090 } 00091 } |
|
Definition at line 93 of file Net.h. References _name.
00094 {return const_cast<char*>(_name.c_str());} |
|
Definition at line 97 of file Net.h. References _netIndex.
00098 { return _netIndex; } |
|
Definition at line 95 of file Net.h. References _nodeIndex.
00096 {return _nodeIndex;} |
|
Definition at line 115 of file Net.h. References _orient, and parquetfp::ORIENT.
00116 { return _orient; } |
|
Definition at line 110 of file Net.h. References _origOffset, and parquetfp::Point::x.
00111 { return _origOffset.x; } |
|
Definition at line 112 of file Net.h. References _origOffset, and parquetfp::Point::y.
00113 { return _origOffset.y; } |
|
Definition at line 91 of file Net.h. References _type.
00092 { return _type;} |
|
Definition at line 106 of file Net.h. References _offset, and parquetfp::Point::x. Referenced by parquetfp::Node::calcAllPinsAtCenter(), parquetfp::DB::getOptimalRangeStart(), and parquetfp::AnalytSolve::getOptLoc().
00107 { return _offset.x; } |
|
Definition at line 108 of file Net.h. References _offset, and parquetfp::Point::y. Referenced by parquetfp::Node::calcAllPinsAtCenter(), parquetfp::DB::getOptimalRangeStart(), and parquetfp::AnalytSolve::getOptLoc().
00109 { return _offset.y; } |
|
Definition at line 101 of file Net.h. References _netIndex.
00102 { _netIndex = netIndex; } |
|
Definition at line 99 of file Net.h. References _nodeIndex. Referenced by parquetfp::ClusterDB::addNetsToNewDB(), and parquetfp::DB::DB().
00100 { _nodeIndex = nodeIndex; } |
|
Definition at line 103 of file Net.h. References _type.
00104 { _type = type; } |
|
|
|
Definition at line 70 of file Net.h. Referenced by getNetIndex(), pin(), and putNetIndex(). |
|
Definition at line 69 of file Net.h. Referenced by getNodeIndex(), and putNodeIndex(). |
|
Definition at line 65 of file Net.h. Referenced by changeOrient(), getXOffset(), getYOffset(), and pin(). |
|
Definition at line 66 of file Net.h. Referenced by changeOrient(), getOrient(), and pin(). |
|
Definition at line 64 of file Net.h. Referenced by changeOrient(), getOrigXOffset(), getOrigYOffset(), and pin(). |
|
|