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 (drc_rtree *aTree)
 
 DRC_LAYER (drc_rtree *aTree, const BOX2I &aRect)
 
iterator begin ()
 
iterator end ()
 

Public Attributes

drc_rtree::Rect m_rect
 
drc_rtreelayer_tree
 

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 537 of file drc_rtree.h.

Constructor & Destructor Documentation

◆ DRC_LAYER() [1/2]

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

Definition at line 539 of file drc_rtree.h.

References m_rect.

◆ DRC_LAYER() [2/2]

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

Member Function Documentation

◆ begin()

iterator DRC_RTREE::DRC_LAYER::begin ( )
inline

Definition at line 553 of file drc_rtree.h.

References layer_tree, and m_rect.

◆ end()

iterator DRC_RTREE::DRC_LAYER::end ( )
inline

Definition at line 558 of file drc_rtree.h.

References layer_tree, and m_rect.

Member Data Documentation

◆ layer_tree

drc_rtree* DRC_RTREE::DRC_LAYER::layer_tree

Definition at line 551 of file drc_rtree.h.

Referenced by begin(), and end().

◆ m_rect

drc_rtree::Rect DRC_RTREE::DRC_LAYER::m_rect

Definition at line 550 of file drc_rtree.h.

Referenced by begin(), DRC_LAYER(), and end().


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