00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_PORTATTRIBUTES_HPP
00017 #define TORC_GENERIC_OM_PORTATTRIBUTES_HPP
00018
00019 #include "torc/generic/om/DumpRestoreConfig.hpp"
00020
00021 #ifdef GENOM_SERIALIZATION
00022 #include <boost/serialization/access.hpp>
00023 #endif //GENOM_SERIALIZATION
00024
00025 #include "torc/generic/om/PortDelay.hpp"
00026 #include "torc/generic/om/Value.hpp"
00027
00028 namespace torc {
00029
00030 namespace generic {
00031
00032
00033
00034
00035
00036
00037 class PortAttributes
00038 {
00039 #ifdef GENOM_SERIALIZATION
00040 friend class boost::serialization::access;
00041 #endif //GENOM_SERIALIZATION
00042
00043 public:
00044 inline const Value
00045 getUnused() const throw();
00046
00047 void
00048 setUnused( const Value &inSource ) throw();
00049
00050 inline const Value
00051 getDesignator() const throw();
00052
00053 void
00054 setDesignator( const Value &inSource ) throw();
00055
00056 inline const Value
00057 getAcLoad() const throw();
00058
00059 void
00060 setAcLoad(const Value & inSource) throw();
00061
00062 inline const PortDelay
00063 getPortDelay() const throw();
00064
00065 inline const bool
00066 getIsPortDelaySet() const throw();
00067
00068 void
00069 setPortDelay(const PortDelay & inSource) throw();
00070
00071 inline const Value
00072 getDcFaninLoad() const throw();
00073
00074 void
00075 setDcFaninLoad(const Value & inSource) throw();
00076
00077 inline const Value
00078 getDcFanoutLoad() const throw();
00079
00080 void
00081 setDcFanoutLoad(const Value & inSource) throw();
00082
00083 inline const Value
00084 getDcMaxFanin() const throw();
00085
00086 void
00087 setDcMaxFanin(const Value & inSource) throw();
00088
00089 inline const Value
00090 getDcMaxFanout() const throw();
00091
00092 void
00093 setDcMaxFanout(const Value & inSource) throw();
00094
00095 PortAttributes();
00096
00097 ~PortAttributes() throw();
00098
00099 PortAttributes(const PortAttributes & inSource);
00100
00101 PortAttributes &
00102 operator=(const PortAttributes & inSource) throw();
00103
00104 private:
00105 #ifdef GENOM_SERIALIZATION
00106 template<class Archive> void
00107 serialize( Archive &ar, unsigned int );
00108 #endif //GENOM_SERIALIZATION
00109
00110 Value mUnused;
00111 Value mDesignator;
00112 Value mDcFaninLoad;
00113 Value mDcFanoutLoad;
00114 Value mDcMaxFanin;
00115 Value mDcMaxFanout;
00116 Value mAcLoad;
00117 PortDelay mPortDelay;
00118 bool mPortDelaySet;
00119 };
00120
00121 inline const Value
00122 PortAttributes::getUnused() const throw() {
00123 return mUnused;
00124 }
00125
00126 inline const Value
00127 PortAttributes::getDesignator() const throw() {
00128 return mDesignator;
00129 }
00130
00131 inline const Value
00132 PortAttributes::getAcLoad() const throw() {
00133 return mAcLoad;
00134 }
00135
00136 inline const PortDelay
00137 PortAttributes::getPortDelay() const throw() {
00138 return mPortDelay;
00139 }
00140
00141 inline const bool
00142 PortAttributes::getIsPortDelaySet() const throw() {
00143 return mPortDelaySet;
00144 }
00145
00146 inline const Value
00147 PortAttributes::getDcFaninLoad() const throw() {
00148 return mDcFaninLoad;
00149 }
00150
00151 inline const Value
00152 PortAttributes::getDcFanoutLoad() const throw() {
00153 return mDcFanoutLoad;
00154 }
00155
00156 inline const Value
00157 PortAttributes::getDcMaxFanin() const throw() {
00158 return mDcMaxFanin;
00159 }
00160
00161 inline const Value
00162 PortAttributes::getDcMaxFanout() const throw() {
00163 return mDcMaxFanout;
00164 }
00165
00166 }
00167
00168 }
00169 #endif // TORC_GENERIC_OM_PORTATTRIBUTES_HPP