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

parquetfp::Net Class Reference

#include <Net.h>

Collaboration diagram for parquetfp::Net:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Net ()
void putName (const char *name)
void addNode (pin node)
void clean (void)
itPin pinsBegin ()
itPin pinsEnd ()
pingetPin (unsigned pinOffset)
int getIndex () const
void putIndex (int netIndex)
double getWeight () const
void putWeight (double netWeight)
char * getName (void)
unsigned getDegree (void) const

Public Attributes

vector< pin_pins

Private Attributes

int _index
string _name
double _weight

Constructor & Destructor Documentation

parquetfp::Net::Net  )  [inline]
 

Definition at line 136 of file Net.h.

References _weight.

00137          {
00138             _weight = 1.0;
00139          }


Member Function Documentation

void parquetfp::Net::addNode pin  node  )  [inline]
 

Definition at line 148 of file Net.h.

References _pins.

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

00149          {
00150             _pins.push_back(node);
00151          }

void parquetfp::Net::clean void   )  [inline]
 

Definition at line 152 of file Net.h.

References _pins.

Referenced by parquetfp::DB::DB(), and parquetfp::Nets::parseNets().

00153          {
00154             _pins.resize(0);
00155          }

unsigned parquetfp::Net::getDegree void   )  const [inline]
 

Definition at line 187 of file Net.h.

References _pins.

Referenced by parquetfp::DB::DB(), parquetfp::ClusterDB::getClosestNode(), and parquetfp::AnalytSolve::getOptLoc().

00188          { return _pins.size(); }

int parquetfp::Net::getIndex  )  const [inline]
 

Definition at line 168 of file Net.h.

References _index.

Referenced by parquetfp::DB::DB().

00169          {
00170             return _index;
00171          }

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

Definition at line 184 of file Net.h.

References _name.

Referenced by parquetfp::DB::DB(), and parquetfp::Nets::parseNets().

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

pin& parquetfp::Net::getPin unsigned  pinOffset  )  [inline]
 

Definition at line 165 of file Net.h.

References _pins.

Referenced by parquetfp::Node::calcAllPinsAtCenter(), parquetfp::Node::changeOrient(), parquetfp::DB::getOptimalRangeStart(), parquetfp::AnalytSolve::getOptLoc(), and parquetfp::Node::syncOrient().

00166          { return _pins[pinOffset]; }

double parquetfp::Net::getWeight  )  const [inline]
 

Definition at line 176 of file Net.h.

References _weight.

Referenced by parquetfp::DB::DB().

00177          {
00178             return _weight;
00179          }

itPin parquetfp::Net::pinsBegin  )  [inline]
 

Definition at line 156 of file Net.h.

References _pins, and parquetfp::itPin.

Referenced by parquetfp::ClusterDB::addNetsToNewDB(), parquetfp::DB::DB(), parquetfp::ClusterDB::getClosestNode(), parquetfp::AnalytSolve::getDesignOptLoc(), parquetfp::DB::getOptimalRangeStart(), and parquetfp::AnalytSolve::getOptLoc().

00157          {
00158             return _pins.begin();
00159          }

itPin parquetfp::Net::pinsEnd  )  [inline]
 

Definition at line 160 of file Net.h.

References _pins, and parquetfp::itPin.

Referenced by parquetfp::ClusterDB::addNetsToNewDB(), parquetfp::DB::DB(), parquetfp::ClusterDB::getClosestNode(), parquetfp::AnalytSolve::getDesignOptLoc(), parquetfp::DB::getOptimalRangeStart(), and parquetfp::AnalytSolve::getOptLoc().

00161          {
00162             return _pins.end();
00163          }

void parquetfp::Net::putIndex int  netIndex  )  [inline]
 

Definition at line 172 of file Net.h.

References _index.

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

00173          {
00174             _index = netIndex;
00175          }

void parquetfp::Net::putName const char *  name  )  [inline]
 

Definition at line 141 of file Net.h.

References _name.

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

00142          { 
00143            _name = name;
00144            // strncpy(_name, name, 99);
00145            // _name[99] = '\0';
00146          }

void parquetfp::Net::putWeight double  netWeight  )  [inline]
 

Definition at line 180 of file Net.h.

References _weight.

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

00181          {
00182             _weight = netWeight;
00183          }


Member Data Documentation

int parquetfp::Net::_index [private]
 

Definition at line 131 of file Net.h.

Referenced by getIndex(), and putIndex().

string parquetfp::Net::_name [private]
 

Definition at line 132 of file Net.h.

Referenced by getName(), and putName().

vector<pin> parquetfp::Net::_pins
 

Definition at line 128 of file Net.h.

Referenced by addNode(), clean(), getDegree(), getPin(), pinsBegin(), and pinsEnd().

double parquetfp::Net::_weight [private]
 

Definition at line 133 of file Net.h.

Referenced by getWeight(), Net(), and putWeight().


The documentation for this class was generated from the following file:
Generated on Mon Apr 25 01:17:58 2005 for Parquete by doxygen 1.3.2