KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_element_diff.h File Reference
#include <diff_merge/kicad_diff_types.h>
#include <functional>
#include <map>
#include <vector>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  KICAD_DIFF::LIB_ELEMENT
 One changed element of a library item, such as a pin, pad, field or graphic. More...
 

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.