Xplace_for_ICCAD/cpp_to_py/common/db/Region.cpp

13 lines
274 B
C++
Raw Normal View History

2022-10-20 22:46:17 +08:00
#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 = min(lx, xl);
ly = min(ly, yl);
hx = max(hx, xh);
hy = max(hy, yh);
}