44 ret = hash<unsigned long long>{}( aItem->
GetLayerSet().to_ullong() );
54 switch( aItem->
Type() )
78 const PAD*
pad =
static_cast<const PAD*
>( aItem );
80 ret = hash<int>{}(
static_cast<int>(
pad->GetShape() ) );
221 wxASSERT_MSG(
false,
"Unhandled type in function hash_fp_item() (exporter_gencad.cpp)" );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
const VECTOR2I & GetEnd() const
Return the ending point of the graphic.
const VECTOR2I & GetStart() const
Return the starting point of the graphic.
int GetTextHeight() const
const EDA_ANGLE & GetTextAngle() const
virtual const wxString & GetText() const
Return the string associated with the text object.
GR_TEXT_H_ALIGN_T GetHorizJustify() const
GR_TEXT_V_ALIGN_T GetVertJustify() const
const VECTOR2I & GetEnd0() const
VECTOR2I GetCenter0() const
const VECTOR2I & GetStart0() const
VECTOR2I GetCenter() const override
This defaults to the center of the bounding box if not overridden.
static void hash_combine(std::size_t &seed)
This is a dummy function to take the final case of hash_combine below.
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)
@ HASH_POS
use coordinates relative to the parent object
@ PCB_FP_SHAPE_T
class FP_SHAPE, a footprint edge
@ PCB_FP_TEXTBOX_T
class FP_TEXTBOX, wrapped text in a footprint
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
@ PCB_PAD_T
class PAD, a pad in a footprint
@ PCB_FP_TEXT_T
class FP_TEXT, text in a footprint