KiCad PCB EDA Suite
RN_NODE_FILTER Struct Reference

General interface for filtering out nodes in search functions.

More...

#include <ratsnest_data.h>

Inheritance diagram for RN_NODE_FILTER:
LINE_TARGET LINE_TARGET_DIFF_TAG LINE_TARGET_SAME_TAG RN_NODE_AND_FILTER RN_NODE_OR_FILTER

Public Member Functions

virtual ~RN_NODE_FILTER ()
 
virtual bool operator() (const RN_NODE_PTR &aNode) const
 

Friends

RN_NODE_AND_FILTER operator&& (const RN_NODE_FILTER &aFilter1, const RN_NODE_FILTER &aFilter2)
 
RN_NODE_OR_FILTER operator|| (const RN_NODE_FILTER &aFilter1, const RN_NODE_FILTER &aFilter2)
 

Detailed Description

General interface for filtering out nodes in search functions.

Definition at line 78 of file ratsnest_data.h.

Constructor & Destructor Documentation

virtual RN_NODE_FILTER::~RN_NODE_FILTER ( )
inlinevirtual

Definition at line 80 of file ratsnest_data.h.

80 {}

Member Function Documentation

virtual bool RN_NODE_FILTER::operator() ( const RN_NODE_PTR aNode) const
inlinevirtual

Reimplemented in RN_NODE_OR_FILTER, RN_NODE_AND_FILTER, LINE_TARGET_DIFF_TAG, LINE_TARGET_SAME_TAG, and LINE_TARGET.

Definition at line 82 of file ratsnest_data.h.

83  {
84  return true; // By default everything passes
85  }

Friends And Related Function Documentation

RN_NODE_AND_FILTER operator&& ( const RN_NODE_FILTER aFilter1,
const RN_NODE_FILTER aFilter2 
)
friend

Definition at line 98 of file ratsnest_data.cpp.

99 {
100  return RN_NODE_AND_FILTER( aFilter1, aFilter2 );
101 }
RN_NODE_OR_FILTER operator|| ( const RN_NODE_FILTER aFilter1,
const RN_NODE_FILTER aFilter2 
)
friend

Definition at line 104 of file ratsnest_data.cpp.

105 {
106  return RN_NODE_OR_FILTER( aFilter1, aFilter2 );
107 }

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