KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_symbol.cpp File Reference
#include <font/outline_font.h>
#include <sch_draw_panel.h>
#include <plotters/plotter.h>
#include <sch_screen.h>
#include <template_fieldnames.h>
#include <transform.h>
#include <settings/color_settings.h>
#include <sch_pin.h>
#include <sch_shape.h>
#include <trace_helpers.h>
#include <common.h>
#include <api/api_enums.h>
#include <api/api_sch_utils.h>
#include <api/api_utils.h>
#include <text_eval/text_eval_wrapper.h>
#include <libraries/legacy_symbol_library.h>
#include <algorithm>
#include <functional>
#include <memory>
#include <unordered_map>
#include <unordered_set>
#include <advanced_config.h>
#include <properties/property.h>
#include <properties/property_mgr.h>
#include <api/schematic/schematic_types.pb.h>

Go to the source code of this file.

Classes

struct  null_deleter
 http://www.boost.org/doc/libs/1_55_0/libs/smart_ptr/sp_techniques.html#weak_without_shared More...
 
struct  LIB_SYMBOL_DESC
 

Macros

#define REPORT(msg)
 
#define ITEM_DESC(item)
 

Enumerations

enum  SEARCH_TERM_CACHE_INDEX { STCI_LIB_NICKNAME = 0 , STCI_LIB_SYMBOL_NAME , STCI_LIB_ID }
 

Functions

static std::shared_ptr< LIB_SYMBOLGetSafeRootSymbol (const LIB_SYMBOL *aSymbol, const char *aCallerName)
 Helper to safely get the root symbol, detecting and logging circular inheritance.
 
bool operator< (const LIB_SYMBOL &aItem1, const LIB_SYMBOL &aItem2)
 

Variables

static struct LIB_SYMBOL_DESC _LIB_SYMBOL_DESC
 

Macro Definition Documentation

◆ ITEM_DESC

#define ITEM_DESC ( item)
Value:
( item )->GetItemDescription( &unitsProvider, false )

Definition at line 2535 of file lib_symbol.cpp.

Referenced by LIB_SYMBOL::Compare(), and FOOTPRINT::FootprintNeedsUpdate().

◆ REPORT

#define REPORT ( msg)
Value:
{ \
if( aReporter ) \
aReporter->Report( msg ); \
}

Definition at line 2530 of file lib_symbol.cpp.

Referenced by LIB_SYMBOL::Compare(), DRC_ENGINE::EvalRules(), DRC_ENGINE::EvalZoneConnection(), FOOTPRINT::FootprintNeedsUpdate(), and DRC_ENGINE::ProcessAssertions().

Enumeration Type Documentation

◆ SEARCH_TERM_CACHE_INDEX

Enumerator
STCI_LIB_NICKNAME 
STCI_LIB_SYMBOL_NAME 
STCI_LIB_ID 

Definition at line 169 of file lib_symbol.cpp.

Function Documentation

◆ GetSafeRootSymbol()

static std::shared_ptr< LIB_SYMBOL > GetSafeRootSymbol ( const LIB_SYMBOL * aSymbol,
const char * aCallerName )
static

◆ operator<()

bool operator< ( const LIB_SYMBOL & aItem1,
const LIB_SYMBOL & aItem2 )

Definition at line 233 of file lib_symbol.cpp.

References LIB_SYMBOL::GetName().

Variable Documentation

◆ _LIB_SYMBOL_DESC

struct LIB_SYMBOL_DESC _LIB_SYMBOL_DESC
static