KiCad PCB EDA Suite
LIB_SYMBOL_LESS_THAN Struct Reference

Used by std:set<LIB_SYMBOL*> instantiation which uses LIB_SYMBOL name as its key. More...

#include <netlist_exporter_base.h>

Public Member Functions

bool operator() (LIB_SYMBOL *const &libsymbol1, LIB_SYMBOL *const &libsymbol2) const
 

Detailed Description

Used by std:set<LIB_SYMBOL*> instantiation which uses LIB_SYMBOL name as its key.

Definition at line 65 of file netlist_exporter_base.h.

Member Function Documentation

◆ operator()()

bool LIB_SYMBOL_LESS_THAN::operator() ( LIB_SYMBOL *const &  libsymbol1,
LIB_SYMBOL *const &  libsymbol2 
) const
inline

Definition at line 68 of file netlist_exporter_base.h.

69  {
70  // Use case specific GetName() wxString compare
71  return libsymbol1->GetLibId() < libsymbol2->GetLibId();
72  }
LIB_ID GetLibId() const override
Definition: lib_symbol.h:135

References LIB_SYMBOL::GetLibId().


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