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 73 of file netlist_exporter.h.

Member Function Documentation

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

Definition at line 76 of file netlist_exporter.h.

References LIB_PART::GetLibId().

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

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