KiCad PCB EDA Suite
RN_NODE_HASH Struct Reference

Functor calculating hash for a given node.


#include <ratsnest_data.h>

Inheritance diagram for RN_NODE_HASH:

Public Member Functions

std::size_t operator() (const RN_NODE_PTR &aNode) const

Detailed Description

Functor calculating hash for a given node.

It is required to make set of shared pointers

work properly.

Definition at line 179 of file ratsnest_data.h.

Member Function Documentation

std::size_t RN_NODE_HASH::operator() ( const RN_NODE_PTR aNode) const

Definition at line 181 of file ratsnest_data.h.

182  {
183  std::size_t hash = 2166136261u;
185  hash ^= aNode->GetX();
186  hash *= 16777619;
187  hash ^= aNode->GetY();
189  return hash;
190  }

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