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 56 of file pns_joint.h.

Member Function Documentation

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

Definition at line 58 of file pns_joint.h.

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

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

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