KiCad PCB EDA Suite
RN_NODE_COMPARE Struct Reference

Functor comparing if two nodes are equal by their coordinates.

More...

#include <ratsnest_data.h>

Inheritance diagram for RN_NODE_COMPARE:

Public Member Functions

bool operator() (const RN_NODE_PTR &aNode1, const RN_NODE_PTR &aNode2) const
 

Detailed Description

Functor comparing if two nodes are equal by their coordinates.

It is required to make set of

shared pointers work properly.

Definition at line 169 of file ratsnest_data.h.

Member Function Documentation

bool RN_NODE_COMPARE::operator() ( const RN_NODE_PTR aNode1,
const RN_NODE_PTR aNode2 
) const
inline

Definition at line 171 of file ratsnest_data.h.

172  {
173  return aNode1 == aNode2;
174  }

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