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

Represents attributes of a Net object. More...

#include <NetAttributes.hpp>

+ Collaboration diagram for torc::generic::NetAttributes:

Public Member Functions

const int32_t getCriticality () const
 
void setCriticality (const int32_t &value)
 
const NetDelay getNetDelay () const
 
void setNetDelay (const NetDelay &inSource)
 
const bool getIsNetDelaySet () const
 
const bool getIsCriticalitySet () const
 
 NetAttributes ()
 
 ~NetAttributes () throw ()
 
 NetAttributes (const NetAttributes &source)
 
NetAttributesoperator= (const NetAttributes &source)
 

Private Attributes

int32_t mCriticality
 
NetDelay mNetDelay
 
bool mCriticalitySet
 
bool mNetDelaySet
 

Detailed Description

Represents attributes of a Net object.

The NetAttributes class stores some optional attributes of a Net.

Definition at line 29 of file NetAttributes.hpp.

Constructor & Destructor Documentation

torc::generic::NetAttributes::NetAttributes ( )
torc::generic::NetAttributes::~NetAttributes ( )
throw (
)

Definition at line 34 of file NetAttributes.cpp.

34 {}
torc::generic::NetAttributes::NetAttributes ( const NetAttributes source)

Definition at line 36 of file NetAttributes.cpp.

36  : mCriticality(inSource.mCriticality),
37  mNetDelay(inSource.mNetDelay), mCriticalitySet(inSource.mCriticalitySet),
38  mNetDelaySet(inSource.mNetDelaySet) {}

Member Function Documentation

const int32_t torc::generic::NetAttributes::getCriticality ( ) const
inline

Get the criticality info of a net for routing.

Returns
Integer value representing criticality info of a net.

Definition at line 88 of file NetAttributes.hpp.

88  {
89  return mCriticality;
90 }
const bool torc::generic::NetAttributes::getIsCriticalitySet ( ) const
inline

Definition at line 96 of file NetAttributes.hpp.

96  {
97  return mCriticalitySet;
98 }
const bool torc::generic::NetAttributes::getIsNetDelaySet ( ) const
inline

Definition at line 100 of file NetAttributes.hpp.

100  {
101  return mNetDelaySet;
102 }
const NetDelay torc::generic::NetAttributes::getNetDelay ( ) const
inline

Get delay information of net

Returns
NetDelay

Definition at line 92 of file NetAttributes.hpp.

92  {
93  return mNetDelay;
94 }
NetAttributes & torc::generic::NetAttributes::operator= ( const NetAttributes source)

Definition at line 40 of file NetAttributes.cpp.

40  {
41  if(this != &inSource) {
42  mCriticality = inSource.mCriticality;
43  mNetDelay = inSource.mNetDelay;
44  mCriticalitySet = inSource.mCriticalitySet;
45  mNetDelaySet = inSource.mNetDelaySet;
46  }
47  return *this;
48 }
void torc::generic::NetAttributes::setCriticality ( const int32_t &  value)

Set the criticality info of a net for routing.

Parameters
[in]valueInteger value representing criticality info of a net.

Definition at line 21 of file NetAttributes.cpp.

21  {
22  mCriticality = inSource;
23  mCriticalitySet = true;
24 }
void torc::generic::NetAttributes::setNetDelay ( const NetDelay inSource)

Set delay information of net

Parameters
[in]inSourceNetDelay, the delay information of a net.

Definition at line 26 of file NetAttributes.cpp.

26  {
27  mNetDelay = inSource;
28  mNetDelaySet = true;
29 }

Field Documentation

int32_t torc::generic::NetAttributes::mCriticality
private

This attribute is used to describe the relative importance of the net compared to other nets, for routing purpose.

Definition at line 76 of file NetAttributes.hpp.

bool torc::generic::NetAttributes::mCriticalitySet
private

Definition at line 83 of file NetAttributes.hpp.

NetDelay torc::generic::NetAttributes::mNetDelay
private

This is an attributes of a net to specify a delay and its derivation for the given set of transitions.

Definition at line 82 of file NetAttributes.hpp.

bool torc::generic::NetAttributes::mNetDelaySet
private

Definition at line 84 of file NetAttributes.hpp.


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