43 ret = hash<unsigned long long>{}( aItem->
GetLayerSet().to_ullong() );
53 switch( aItem->
Type() )
57 const FOOTPRINT* footprint = static_cast<const FOOTPRINT*>( aItem );
77 const PAD*
pad = static_cast<const PAD*>( aItem );
79 ret = hash<int>{}( static_cast<int>(
pad->GetShape() ) << 16 );
108 const FP_TEXT*
text = static_cast<const FP_TEXT*>( aItem );
141 const FP_SHAPE* shape = static_cast<const FP_SHAPE*>( aItem );
185 wxASSERT_MSG(
false, wxT(
"Unhandled type in function hash_fp_item() (exporter_gencad.cpp)" ) );
class FP_TEXT, text in a footprint
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
const wxPoint & GetStart() const
Return the starting point of the graphic.
use coordinates relative to the parent object
double GetArcAngle() const
const wxPoint & GetStart0() const
class FP_SHAPE, a footprint edge
class PAD, a pad in a footprint
static void hash_combine(std::size_t &seed)
This is a dummy function to take the final case of hash_combine below.
wxPoint GetCenter0() const
const wxPoint & GetEnd() const
Return the ending point of the graphic.
wxPoint GetCenter() const override
This defaults to the center of the bounding box if not overridden.
size_t hash_fp_item(const EDA_ITEM *aItem, int aFlags)
Calculate hash of an EDA_ITEM.
static size_t hash_board_item(const BOARD_ITEM *aItem, int aFlags)
class FOOTPRINT, a footprint
const wxPoint & GetEnd0() const
A base class for most all the KiCad significant classes used in schematics and boards.
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
KICAD_T Type() const
Returns the type of object.