KiCad PCB EDA Suite
LIB_PART_LESS_THAN Struct Reference

Struct LIB_PART_LESS_THAN is used by std:set<LIB_PART*> instantiation which uses LIB_PART name as its key. More...

#include <netlist_exporter.h>

Public Member Functions

bool operator() (LIB_PART *const &libpart1, LIB_PART *const &libpart2) const
 

Detailed Description

Struct LIB_PART_LESS_THAN is used by std:set<LIB_PART*> instantiation which uses LIB_PART name as its key.

Definition at line 74 of file netlist_exporter.h.

Member Function Documentation

◆ operator()()

bool LIB_PART_LESS_THAN::operator() ( LIB_PART *const &  libpart1,
LIB_PART *const &  libpart2 
) const
inline

Definition at line 77 of file netlist_exporter.h.

78  {
79  // Use case specific GetName() wxString compare
80  return libpart1->GetLibId() < libpart2->GetLibId();
81  }
LIB_ID GetLibId() const override

References LIB_PART::GetLibId().


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