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

#include <NetlistNet.hpp>

+ Collaboration diagram for torc::placer::NetlistNet:

Public Member Functions

 NetlistNet (std::string inName, ENetType inType, uint32 inIndex)
 
 ~NetlistNet ()
 
uint32 addSource (NetlistPin *newPin)
 
uint32 addSink (NetlistPin *newPin)
 
uint32 getNumSources ()
 
uint32 getNumSinks ()
 
NetlistPingetSource (uint32 i)
 
NetlistPingetSink (uint32 i)
 
std::string & getName ()
 
ENetType getType ()
 
uint32 getIndex ()
 

Protected Attributes

uint32 mIndex
 
std::string mName
 
ENetType mType
 
std::vector< NetlistPin * > mSources
 
std::vector< NetlistPin * > mSinks
 

Private Types

typedef physical::ENetType ENetType
 
typedef boost::uint32_t uint32
 

Detailed Description

Definition at line 28 of file NetlistNet.hpp.

Member Typedef Documentation

Definition at line 30 of file NetlistNet.hpp.

typedef boost::uint32_t torc::placer::NetlistNet::uint32
private

Definition at line 31 of file NetlistNet.hpp.

Constructor & Destructor Documentation

torc::placer::NetlistNet::NetlistNet ( std::string  inName,
ENetType  inType,
uint32  inIndex 
)
inline

Definition at line 40 of file NetlistNet.hpp.

40  :
41  mIndex(inIndex), mName(inName), mType(inType) {}
torc::placer::NetlistNet::~NetlistNet ( )
inline

Definition at line 42 of file NetlistNet.hpp.

42 {}

Member Function Documentation

uint32 torc::placer::NetlistNet::addSink ( NetlistPin newPin)
inline

Definition at line 48 of file NetlistNet.hpp.

48  {
49  uint32 index = mSinks.size();
50  mSinks.push_back(newPin);
51  return index;
52  }
std::vector< NetlistPin * > mSinks
Definition: NetlistNet.hpp:37
boost::uint32_t uint32
Definition: NetlistNet.hpp:31

+ Here is the caller graph for this function:

uint32 torc::placer::NetlistNet::addSource ( NetlistPin newPin)
inline

Definition at line 43 of file NetlistNet.hpp.

43  {
44  uint32 index = mSources.size();
45  mSources.push_back(newPin);
46  return index;
47  }
boost::uint32_t uint32
Definition: NetlistNet.hpp:31
std::vector< NetlistPin * > mSources
Definition: NetlistNet.hpp:36

+ Here is the caller graph for this function:

uint32 torc::placer::NetlistNet::getIndex ( )
inline

Definition at line 71 of file NetlistNet.hpp.

71  {
72  return mIndex;
73  }
std::string& torc::placer::NetlistNet::getName ( void  )
inline

Definition at line 65 of file NetlistNet.hpp.

65  {
66  return mName;
67  }

+ Here is the caller graph for this function:

uint32 torc::placer::NetlistNet::getNumSinks ( )
inline

Definition at line 56 of file NetlistNet.hpp.

56  {
57  return mSinks.size();
58  }
std::vector< NetlistPin * > mSinks
Definition: NetlistNet.hpp:37

+ Here is the caller graph for this function:

uint32 torc::placer::NetlistNet::getNumSources ( )
inline

Definition at line 53 of file NetlistNet.hpp.

53  {
54  return mSources.size();
55  }
std::vector< NetlistPin * > mSources
Definition: NetlistNet.hpp:36

+ Here is the caller graph for this function:

NetlistPin* torc::placer::NetlistNet::getSink ( uint32  i)
inline

Definition at line 62 of file NetlistNet.hpp.

62  {
63  return mSinks[i];
64  }
std::vector< NetlistPin * > mSinks
Definition: NetlistNet.hpp:37

+ Here is the caller graph for this function:

NetlistPin* torc::placer::NetlistNet::getSource ( uint32  i)
inline

Definition at line 59 of file NetlistNet.hpp.

59  {
60  return mSources[i];
61  }
std::vector< NetlistPin * > mSources
Definition: NetlistNet.hpp:36

+ Here is the caller graph for this function:

ENetType torc::placer::NetlistNet::getType ( void  )
inline

Definition at line 68 of file NetlistNet.hpp.

68  {
69  return mType;
70  }

+ Here is the caller graph for this function:

Field Documentation

uint32 torc::placer::NetlistNet::mIndex
protected

Definition at line 33 of file NetlistNet.hpp.

std::string torc::placer::NetlistNet::mName
protected

Definition at line 34 of file NetlistNet.hpp.

std::vector<NetlistPin*> torc::placer::NetlistNet::mSinks
protected

Definition at line 37 of file NetlistNet.hpp.

std::vector<NetlistPin*> torc::placer::NetlistNet::mSources
protected

Definition at line 36 of file NetlistNet.hpp.

ENetType torc::placer::NetlistNet::mType
protected

Definition at line 35 of file NetlistNet.hpp.


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