KiCad PCB EDA Suite
|
The DRC_LAYER struct provides a layer-specific auto-range iterator to the RTree. More...
#include <drc_rtree.h>
Public Member Functions | |
DRC_LAYER (drc_rtree *aTree) | |
DRC_LAYER (drc_rtree *aTree, const BOX2I &aRect) | |
iterator | begin () |
iterator | end () |
Public Attributes | |
drc_rtree::Rect | m_rect |
drc_rtree * | layer_tree |
The DRC_LAYER struct provides a layer-specific auto-range iterator to the RTree.
Using this struct, one can write lines like:
for( auto item : rtree.OnLayer( In1_Cu ) )
and iterate over only the RTree items that are on In1
Definition at line 558 of file drc_rtree.h.
|
inline |
Definition at line 560 of file drc_rtree.h.
References m_rect.
Definition at line 565 of file drc_rtree.h.
References BOX2< Vec >::GetBottom(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), and m_rect.
|
inline |
Definition at line 574 of file drc_rtree.h.
References layer_tree, and m_rect.
|
inline |
Definition at line 579 of file drc_rtree.h.
References layer_tree, and m_rect.
drc_rtree* DRC_RTREE::DRC_LAYER::layer_tree |
Definition at line 572 of file drc_rtree.h.
drc_rtree::Rect DRC_RTREE::DRC_LAYER::m_rect |
Definition at line 571 of file drc_rtree.h.
Referenced by begin(), DRC_LAYER(), and end().