KiCad PCB EDA Suite
lib_symbol.h File Reference
#include <general.h>
#include <lib_tree_item.h>
#include <lib_item.h>
#include <lib_field.h>
#include <vector>
#include <multivector.h>

Go to the source code of this file.

Classes

struct  LIB_SYMBOL_OPTIONS
 
struct  LIB_SYMBOL_UNITS
 
class  LIB_SYMBOL
 Define a library symbol object. More...
 

Typedefs

typedef std::shared_ptr< LIB_SYMBOLLIB_SYMBOL_SPTR
 shared pointer to LIB_SYMBOL More...
 
typedef std::weak_ptr< LIB_SYMBOLLIB_SYMBOL_REF
 weak pointer to LIB_SYMBOL More...
 
typedef MULTIVECTOR< LIB_ITEM, LIB_ARC_T, LIB_FIELD_TLIB_ITEMS_CONTAINER
 
typedef LIB_ITEMS_CONTAINER::ITEM_PTR_VECTOR LIB_ITEMS
 

Enumerations

enum  LIBRENTRYOPTIONS { ENTRY_NORMAL, ENTRY_POWER }
 

Functions

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

Typedef Documentation

◆ LIB_ITEMS

Definition at line 48 of file lib_symbol.h.

◆ LIB_ITEMS_CONTAINER

◆ LIB_SYMBOL_REF

typedef std::weak_ptr<LIB_SYMBOL> LIB_SYMBOL_REF

weak pointer to LIB_SYMBOL

Definition at line 46 of file lib_symbol.h.

◆ LIB_SYMBOL_SPTR

typedef std::shared_ptr<LIB_SYMBOL> LIB_SYMBOL_SPTR

shared pointer to LIB_SYMBOL

Definition at line 42 of file lib_symbol.h.

Enumeration Type Documentation

◆ LIBRENTRYOPTIONS

Enumerator
ENTRY_NORMAL 
ENTRY_POWER 

Definition at line 52 of file lib_symbol.h.

53 {
54  ENTRY_NORMAL, // Libentry is a standard symbol (real or alias)
55  ENTRY_POWER // Libentry is a power symbol
56 };

Function Documentation

◆ operator<()

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

Definition at line 67 of file lib_symbol.cpp.

68 {
69  return aItem1.GetName() < aItem2.GetName();
70 }
wxString GetName() const override
Definition: lib_symbol.h:133

References LIB_SYMBOL::GetName().