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 BOX2I &aRect) | |
iterator | begin () |
iterator | end () |
bool | empty () |
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_SYMBOL_T ) )
and iterate over the RTree items that are symbols only
Definition at line 191 of file sch_rtree.h.
Definition at line 193 of file sch_rtree.h.
References BaseType(), m_rect, and SCH_LOCATE_ANY_T.
Definition at line 203 of file sch_rtree.h.
References BaseType(), BOX2< Vec >::GetBottom(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetX(), BOX2< Vec >::GetY(), m_rect, and SCH_LOCATE_ANY_T.
|
inline |
Definition at line 222 of file sch_rtree.h.
References m_rect, and type_tree.
Referenced by SCH_SCREEN::HasItems().
|
inline |
Definition at line 232 of file sch_rtree.h.
References type_tree.
|
inline |
Definition at line 227 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 219 of file sch_rtree.h.
ee_rtree* EE_RTREE::EE_TYPE::type_tree |
Definition at line 220 of file sch_rtree.h.