|
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 ()=default | |
| DRC_LAYER (const drc_rtree &aTree) | |
| DRC_LAYER (const drc_rtree &aTree, const BOX2I &aRect) | |
| std::vector< ITEM_WITH_SHAPE * >::iterator | begin () |
| std::vector< ITEM_WITH_SHAPE * >::iterator | end () |
Public Attributes | |
| std::vector< ITEM_WITH_SHAPE * > | m_items |
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 572 of file drc_rtree.h.
|
default |
|
inline |
Definition at line 576 of file drc_rtree.h.
References m_items.
Definition at line 582 of file drc_rtree.h.
References BOX2< Vec >::GetBottom(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), m_items, and KIRTREE::PACKED_RTREE< DATATYPE, ELEMTYPE, NUMDIMS, FANOUT >::Search().
|
inline |
Definition at line 598 of file drc_rtree.h.
References m_items.
|
inline |
Definition at line 599 of file drc_rtree.h.
References m_items.
| std::vector<ITEM_WITH_SHAPE*> DRC_RTREE::DRC_LAYER::m_items |
Definition at line 596 of file drc_rtree.h.
Referenced by begin(), DRC_LAYER(), DRC_LAYER(), and end().