Xplace_for_ICCAD/cpp_to_py/common/db/Region.cpp

13 lines
294 B
C++

#include "Database.h"
using namespace db;
/***** Region *****/
void Region::addRect(const int xl, const int yl, const int xh, const int yh) {
rects.emplace_back(xl, yl, xh, yh);
lx = std::min(lx, xl);
ly = std::min(ly, yl);
hx = std::max(hx, xh);
hy = std::max(hy, yh);
}