Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

parquetfp::pin Class Reference

#include <Net.h>

Collaboration diagram for parquetfp::pin:

Collaboration graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

parquetfp::pin::pin const char *  name,
bool  type,
double  xoffset,
double  yoffset,
int  netIndex
[inline]
 

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          }

parquetfp::pin::pin  )  [inline]
 

Definition at line 87 of file Net.h.

00088          {
00089          }


Member Function Documentation

void pin::changeOrient ORIENT  newOrient  ) 
 

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 }

char* parquetfp::pin::getName void   )  [inline]
 

Definition at line 93 of file Net.h.

References _name.

00094          {return const_cast<char*>(_name.c_str());}

int parquetfp::pin::getNetIndex  )  const [inline]
 

Definition at line 97 of file Net.h.

References _netIndex.

00098          { return _netIndex; }

int parquetfp::pin::getNodeIndex  )  const [inline]
 

Definition at line 95 of file Net.h.

References _nodeIndex.

00096          {return _nodeIndex;}

ORIENT parquetfp::pin::getOrient void   )  const [inline]
 

Definition at line 115 of file Net.h.

References _orient, and parquetfp::ORIENT.

00116          { return _orient; }

double parquetfp::pin::getOrigXOffset void   )  const [inline]
 

Definition at line 110 of file Net.h.

References _origOffset, and parquetfp::Point::x.

00111          { return _origOffset.x; }

double parquetfp::pin::getOrigYOffset void   )  const [inline]
 

Definition at line 112 of file Net.h.

References _origOffset, and parquetfp::Point::y.

00113          { return _origOffset.y; }

bool parquetfp::pin::getType  )  const [inline]
 

Definition at line 91 of file Net.h.

References _type.

00092          { return _type;}

double parquetfp::pin::getXOffset void   )  const [inline]
 

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; }

double parquetfp::pin::getYOffset void   )  const [inline]
 

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; }

void parquetfp::pin::putNetIndex int  netIndex  )  [inline]
 

Definition at line 101 of file Net.h.

References _netIndex.

00102          { _netIndex = netIndex; }

void parquetfp::pin::putNodeIndex int  nodeIndex  )  [inline]
 

Definition at line 99 of file Net.h.

References _nodeIndex.

Referenced by parquetfp::ClusterDB::addNetsToNewDB(), and parquetfp::DB::DB().

00100          { _nodeIndex = nodeIndex; }

void parquetfp::pin::putType bool  type  )  [inline]
 

Definition at line 103 of file Net.h.

References _type.

00104          { _type = type; }


Member Data Documentation

string parquetfp::pin::_name [private]
 

Definition at line 67 of file Net.h.

Referenced by getName(), and pin().

int parquetfp::pin::_netIndex [private]
 

Definition at line 70 of file Net.h.

Referenced by getNetIndex(), pin(), and putNetIndex().

int parquetfp::pin::_nodeIndex [private]
 

Definition at line 69 of file Net.h.

Referenced by getNodeIndex(), and putNodeIndex().

Point parquetfp::pin::_offset [private]
 

Definition at line 65 of file Net.h.

Referenced by changeOrient(), getXOffset(), getYOffset(), and pin().

ORIENT parquetfp::pin::_orient [private]
 

Definition at line 66 of file Net.h.

Referenced by changeOrient(), getOrient(), and pin().

Point parquetfp::pin::_origOffset [private]
 

Definition at line 64 of file Net.h.

Referenced by changeOrient(), getOrigXOffset(), getOrigYOffset(), and pin().

bool parquetfp::pin::_type [private]
 

Definition at line 68 of file Net.h.

Referenced by getType(), pin(), and putType().


The documentation for this class was generated from the following files:
Generated on Mon Apr 25 01:18:23 2005 for Parquete by doxygen 1.3.2