KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DRC_RTREE::DRC_LAYER Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DRC_LAYER() [1/3]

DRC_RTREE::DRC_LAYER::DRC_LAYER ( )
default

◆ DRC_LAYER() [2/3]

DRC_RTREE::DRC_LAYER::DRC_LAYER ( const drc_rtree & aTree)
inline

Definition at line 576 of file drc_rtree.h.

References m_items.

◆ DRC_LAYER() [3/3]

DRC_RTREE::DRC_LAYER::DRC_LAYER ( const drc_rtree & aTree,
const BOX2I & aRect )
inline

Member Function Documentation

◆ begin()

std::vector< ITEM_WITH_SHAPE * >::iterator DRC_RTREE::DRC_LAYER::begin ( )
inline

Definition at line 598 of file drc_rtree.h.

References m_items.

◆ end()

std::vector< ITEM_WITH_SHAPE * >::iterator DRC_RTREE::DRC_LAYER::end ( )
inline

Definition at line 599 of file drc_rtree.h.

References m_items.

Member Data Documentation

◆ 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().


The documentation for this struct was generated from the following file: