KiCad PCB EDA Suite
LINE_TARGET_SAME_TAG Struct Reference

Leaves nodes that can be a ratsnest line target and have a specific tag

More...

#include <ratsnest_data.h>

Inheritance diagram for LINE_TARGET_SAME_TAG:
RN_NODE_FILTER

Public Member Functions

 LINE_TARGET_SAME_TAG (int aTag)
 
bool operator() (const RN_NODE_PTR &aNode) const override
 

Private Attributes

int m_tag
 

Detailed Description

Leaves nodes that can be a ratsnest line target and have a specific tag

Definition at line 104 of file ratsnest_data.h.

Constructor & Destructor Documentation

LINE_TARGET_SAME_TAG::LINE_TARGET_SAME_TAG ( int  aTag)
inline

Definition at line 106 of file ratsnest_data.h.

106  :
107  m_tag( aTag )
108  {}

Member Function Documentation

bool LINE_TARGET_SAME_TAG::operator() ( const RN_NODE_PTR aNode) const
inlineoverridevirtual

Reimplemented from RN_NODE_FILTER.

Definition at line 110 of file ratsnest_data.h.

References m_tag.

111  {
112  return !aNode->GetNoLine() && aNode->GetTag() == m_tag;
113  }

Member Data Documentation

int LINE_TARGET_SAME_TAG::m_tag
private

Definition at line 116 of file ratsnest_data.h.

Referenced by operator()().


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