KiCad PCB EDA Suite
PNS::JOINT::JOINT_TAG_HASH Struct Reference

#include <pns_joint.h>

Public Member Functions

std::size_t operator() (const JOINT::HASH_TAG &aP) const
 

Detailed Description

Definition at line 55 of file pns_joint.h.

Member Function Documentation

◆ operator()()

std::size_t PNS::JOINT::JOINT_TAG_HASH::operator() ( const JOINT::HASH_TAG aP) const
inline

Definition at line 57 of file pns_joint.h.

58  {
59  using std::size_t;
60  using std::hash;
61  using std::string;
62 
63  return ( (hash<int>()( aP.pos.x )
64  ^ (hash<int>()( aP.pos.y ) << 1) ) >> 1 )
65  ^ (hash<int>()( aP.net ) << 1);
66  }

References PNS::JOINT::HASH_TAG::net, PNS::JOINT::HASH_TAG::pos, VECTOR2< T >::x, and VECTOR2< T >::y.


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