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

Represents attributes of a Port or PortReference object. More...

#include <PortAttributes.hpp>

+ Collaboration diagram for torc::generic::PortAttributes:

Public Member Functions

const Value getUnused () const
 
void setUnused (const Value &inSource)
 
const Value getDesignator () const
 
void setDesignator (const Value &inSource)
 
const Value getAcLoad () const
 
void setAcLoad (const Value &inSource)
 
const PortDelay getPortDelay () const
 
const bool getIsPortDelaySet () const
 
void setPortDelay (const PortDelay &inSource)
 
const Value getDcFaninLoad () const
 
void setDcFaninLoad (const Value &inSource)
 
const Value getDcFanoutLoad () const
 
void setDcFanoutLoad (const Value &inSource)
 
const Value getDcMaxFanin () const
 
void setDcMaxFanin (const Value &inSource)
 
const Value getDcMaxFanout () const
 
void setDcMaxFanout (const Value &inSource)
 
 PortAttributes ()
 
 ~PortAttributes () throw ()
 
 PortAttributes (const PortAttributes &inSource)
 
PortAttributesoperator= (const PortAttributes &inSource)
 

Private Attributes

Value mUnused
 
Value mDesignator
 
Value mDcFaninLoad
 
Value mDcFanoutLoad
 
Value mDcMaxFanin
 
Value mDcMaxFanout
 
Value mAcLoad
 
PortDelay mPortDelay
 
bool mPortDelaySet
 

Detailed Description

Represents attributes of a Port or PortReference object.

The PortAttributes class stores some optional attributes of a Port or overridden values in a PortReference object. The values can be set from an EDIF file using the (port ...), (portBackAnnotate ...) or the (portInstance ...) constructs. The main logic of bringing this out of the Port/PortReference objects is to save space.

Definition at line 36 of file PortAttributes.hpp.

Constructor & Destructor Documentation

torc::generic::PortAttributes::~PortAttributes ( )
throw (
)

Definition at line 65 of file PortAttributes.cpp.

65 {}
torc::generic::PortAttributes::PortAttributes ( const PortAttributes inSource)

Definition at line 67 of file PortAttributes.cpp.

68  : mDcFaninLoad(inSource.mDcFaninLoad), mDcFanoutLoad(inSource.mDcFanoutLoad),
69  mDcMaxFanin(inSource.mDcMaxFanin), mDcMaxFanout(inSource.mDcMaxFanout),
70  mAcLoad(inSource.mAcLoad), mPortDelay(inSource.mPortDelay),
71  mPortDelaySet(inSource.mPortDelaySet) {}

Member Function Documentation

const Value torc::generic::PortAttributes::getAcLoad ( ) const
inline

Definition at line 106 of file PortAttributes.hpp.

106  {
107  return mAcLoad;
108 }
const Value torc::generic::PortAttributes::getDcFaninLoad ( ) const
inline

Definition at line 118 of file PortAttributes.hpp.

118  {
119  return mDcFaninLoad;
120 }
const Value torc::generic::PortAttributes::getDcFanoutLoad ( ) const
inline

Definition at line 122 of file PortAttributes.hpp.

122  {
123  return mDcFanoutLoad;
124 }
const Value torc::generic::PortAttributes::getDcMaxFanin ( ) const
inline

Definition at line 126 of file PortAttributes.hpp.

126  {
127  return mDcMaxFanin;
128 }
const Value torc::generic::PortAttributes::getDcMaxFanout ( ) const
inline

Definition at line 130 of file PortAttributes.hpp.

130  {
131  return mDcMaxFanout;
132 }
const Value torc::generic::PortAttributes::getDesignator ( ) const
inline

Definition at line 102 of file PortAttributes.hpp.

102  {
103  return mDesignator;
104 }
const bool torc::generic::PortAttributes::getIsPortDelaySet ( ) const
inline

Definition at line 114 of file PortAttributes.hpp.

114  {
115  return mPortDelaySet;
116 }
const PortDelay torc::generic::PortAttributes::getPortDelay ( ) const
inline

Definition at line 110 of file PortAttributes.hpp.

110  {
111  return mPortDelay;
112 }
const Value torc::generic::PortAttributes::getUnused ( ) const
inline

Definition at line 98 of file PortAttributes.hpp.

98  {
99  return mUnused;
100 }
PortAttributes & torc::generic::PortAttributes::operator= ( const PortAttributes inSource)

Definition at line 73 of file PortAttributes.cpp.

73  {
74  if(this != &inSource) {
75  mDcFaninLoad = inSource.mDcFaninLoad;
76  mDcFanoutLoad = inSource.mDcFanoutLoad;
77  mDcMaxFanin = inSource.mDcMaxFanin;
78  mDcMaxFanout = inSource.mDcMaxFanout;
79  mAcLoad = inSource.mAcLoad;
80  mPortDelay = inSource.mPortDelay;
81  mPortDelaySet = inSource.mPortDelaySet;
82  }
83  return *this;
84 }
void torc::generic::PortAttributes::setAcLoad ( const Value inSource)

Definition at line 37 of file PortAttributes.cpp.

37  {
38  mAcLoad = inSource;
39 }
void torc::generic::PortAttributes::setDcFaninLoad ( const Value inSource)

Definition at line 46 of file PortAttributes.cpp.

46  {
47  mDcFaninLoad = inSource;
48 }
void torc::generic::PortAttributes::setDcFanoutLoad ( const Value inSource)

Definition at line 50 of file PortAttributes.cpp.

50  {
51  mDcFanoutLoad = inSource;
52 }
void torc::generic::PortAttributes::setDcMaxFanin ( const Value inSource)

Definition at line 54 of file PortAttributes.cpp.

54  {
55  mDcMaxFanin = inSource;
56 }
void torc::generic::PortAttributes::setDcMaxFanout ( const Value inSource)

Definition at line 58 of file PortAttributes.cpp.

58  {
59  mDcMaxFanout = inSource;
60 }
void torc::generic::PortAttributes::setDesignator ( const Value inSource)

Definition at line 33 of file PortAttributes.cpp.

33  {
34  mDesignator = inSource;
35 }
void torc::generic::PortAttributes::setPortDelay ( const PortDelay inSource)

Definition at line 41 of file PortAttributes.cpp.

41  {
42  mPortDelay = inSource;
43  mPortDelaySet = true;
44 }
void torc::generic::PortAttributes::setUnused ( const Value inSource)

Definition at line 29 of file PortAttributes.cpp.

29  {
30  mUnused = inSource;
31 }

Field Documentation

Value torc::generic::PortAttributes::mAcLoad
private

Definition at line 93 of file PortAttributes.hpp.

Value torc::generic::PortAttributes::mDcFaninLoad
private

Definition at line 89 of file PortAttributes.hpp.

Value torc::generic::PortAttributes::mDcFanoutLoad
private

Definition at line 90 of file PortAttributes.hpp.

Value torc::generic::PortAttributes::mDcMaxFanin
private

Definition at line 91 of file PortAttributes.hpp.

Value torc::generic::PortAttributes::mDcMaxFanout
private

Definition at line 92 of file PortAttributes.hpp.

Value torc::generic::PortAttributes::mDesignator
private

Definition at line 88 of file PortAttributes.hpp.

PortDelay torc::generic::PortAttributes::mPortDelay
private

Definition at line 94 of file PortAttributes.hpp.

bool torc::generic::PortAttributes::mPortDelaySet
private

Definition at line 95 of file PortAttributes.hpp.

Value torc::generic::PortAttributes::mUnused
private

Definition at line 87 of file PortAttributes.hpp.


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