41 std::atomic<int> reported( 0 );
44 [&](
const std::shared_ptr<DRC_ITEM>&,
const VECTOR2I&,
int,
47 reported.fetch_add( 1 );
62 const int capped = reported.load();
66 for(
int ii = 0; ii < 500; ++ii )
Design Rule Checker object that performs all the DRC tests.
void SetViolationHandler(DRC_VIOLATION_HANDLER aHandler)
Set an optional DRC violation handler (receives DRC_ITEMs and positions).
bool IsErrorLimitExceeded(int error_code)
void ReportViolation(const std::shared_ptr< DRC_ITEM > &aItem, const VECTOR2I &aPos, int aMarkerLayer, const std::function< void(PCB_MARKER *)> &aPathGenerator={})
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_TEST(netlist.find("R_G1 ARM_OUT1 DIE_B R='0.001 / ((SW_STATE)") !=std::string::npos)
VECTOR2< int32_t > VECTOR2I