KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_element_diff.cpp File Reference
#include <diff_merge/lib_element_diff.h>
#include <diff_merge/property_diff.h>
#include <eda_item.h>
#include <set>

Go to the source code of this file.

Namespaces

namespace  KICAD_DIFF
 

Functions

void KICAD_DIFF::DiffKeyedElements (std::vector< LIB_ELEMENT > &aOut, const wxString &aTypeName, const std::map< wxString, const EDA_ITEM * > &aBefore, const std::map< wxString, const EDA_ITEM * > &aAfter)
 Elements that are matched by a key, such as pins by number or fields by name.
 
void KICAD_DIFF::DiffUnkeyedElements (std::vector< LIB_ELEMENT > &aOut, const std::vector< const EDA_ITEM * > &aBefore, const std::vector< const EDA_ITEM * > &aAfter, const std::function< wxString(const EDA_ITEM *)> &aTypeName, const std::function< bool(const EDA_ITEM *, const EDA_ITEM *)> &aSameGeometry={})
 Elements with no key.
 
void KICAD_DIFF::AppendElementChanges (ITEM_CHANGE &aChange, const std::vector< LIB_ELEMENT > &aElements)
 Add each element to aChange as a child change, which is how a library item reports its elements.