![]() |
KiCad PCB EDA Suite
|
The EE_TYPE struct provides a type-specific auto-range iterator to the RTree. More...
#include <sch_rtree.h>
Public Member Functions | |
EE_TYPE (ee_rtree *aTree, KICAD_T aType) | |
EE_TYPE (ee_rtree *aTree, KICAD_T aType, const EDA_RECT aRect) | |
iterator | begin () |
iterator | end () |
Public Attributes | |
ee_rtree::Rect | m_rect |
ee_rtree * | type_tree |
The EE_TYPE struct provides a type-specific auto-range iterator to the RTree.
Using this struct, one can write lines like:
for( auto item : rtree.OfType( SCH_COMPONENT_T ) )
and iterate over the RTree items that are symbols only
Definition at line 178 of file sch_rtree.h.
Definition at line 180 of file sch_rtree.h.
References BaseType(), m_rect, and SCH_LOCATE_ANY_T.
Definition at line 190 of file sch_rtree.h.
References BaseType(), EDA_RECT::GetBottom(), EDA_RECT::GetRight(), EDA_RECT::GetX(), EDA_RECT::GetY(), m_rect, and SCH_LOCATE_ANY_T.
|
inline |
Definition at line 205 of file sch_rtree.h.
References m_rect, and type_tree.
Referenced by SCH_SCREEN::HasItems().
|
inline |
Definition at line 210 of file sch_rtree.h.
References m_rect, and type_tree.
Referenced by SCH_SCREEN::HasItems().
ee_rtree::Rect EE_RTREE::EE_TYPE::m_rect |
Definition at line 200 of file sch_rtree.h.
ee_rtree* EE_RTREE::EE_TYPE::type_tree |
Definition at line 203 of file sch_rtree.h.