17 #ifndef KATABATIC_CHIP_TOOLS_H
18 #define KATABATIC_CHIP_TOOLS_H
21 #include "hurricane/DbU.h"
22 #include "hurricane/Torus.h"
31 using Hurricane::Record;
34 using Hurricane::Torus;
42 inline bool isChip ()
const;
45 inline Cell* getReferencePad ()
const;
48 inline DbU::Unit getPadPowerWidth ()
const;
49 inline DbU::Unit getPadClockWidth ()
const;
56 inline const Box& getCoronaBb ()
const;
59 inline bool vPadsEnclosed (
const Box& )
const;
60 inline bool hPadsEnclosed (
const Box& )
const;
62 Record* _getRecord ()
const;
63 std::string _getString ()
const;
64 inline std::string _getTypeName ()
const;
87 inline Cell* ChipTools::getReferencePad ()
const {
return _referencePad; }
88 inline DbU::Unit ChipTools::getPadWidth ()
const {
return _padWidth; }
89 inline DbU::Unit ChipTools::getPadHeight ()
const {
return _padHeight; }
90 inline DbU::Unit ChipTools::getPadPowerWidth ()
const {
return _padPowerWidth; }
91 inline DbU::Unit ChipTools::getPadClockWidth ()
const {
return _padClockWidth; }
98 inline const Box& ChipTools::getCoronaBb ()
const {
return _chipCorona.getOuterBox(); }
99 inline std::string ChipTools::_getTypeName ()
const {
return "ChipTools"; }
107 inline bool ChipTools::vPadsEnclosed (
const Box& box )
const
110 inline bool ChipTools::hPadsEnclosed (
const Box& box )
const
118 #endif // KATABATIC_CHIP_TOOLS_H
bool contains(const DbU::Unit &x, const DbU::Unit &y) const
bool intersect(const Box &box) const