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::GetName().

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

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