KiCad PCB EDA Suite
class_libentry.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  PART_DRAW_OPTIONS
 
struct  PART_UNITS
 
class  LIB_PART
 Define a library symbol object. More...
 

Typedefs

typedef std::shared_ptr< LIB_PARTPART_SPTR
 shared pointer to LIB_PART More...
 
typedef std::weak_ptr< LIB_PARTPART_REF
 weak pointer to LIB_PART 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_PART &aItem1, const LIB_PART &aItem2)
 

Typedef Documentation

◆ LIB_ITEMS

◆ LIB_ITEMS_CONTAINER

◆ PART_REF

typedef std::weak_ptr<LIB_PART> PART_REF

weak pointer to LIB_PART

Definition at line 50 of file class_libentry.h.

◆ PART_SPTR

typedef std::shared_ptr<LIB_PART> PART_SPTR

shared pointer to LIB_PART

Definition at line 46 of file class_libentry.h.

Enumeration Type Documentation

◆ LIBRENTRYOPTIONS

Enumerator
ENTRY_NORMAL 
ENTRY_POWER 

Definition at line 56 of file class_libentry.h.

57 {
58  ENTRY_NORMAL, // Libentry is a standard part (real or alias)
59  ENTRY_POWER // Libentry is a power symbol
60 };

Function Documentation

◆ operator<()

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

Definition at line 70 of file class_libentry.cpp.

71 {
72  return aItem1.GetName() < aItem2.GetName();
73 }
wxString GetName() const override

References LIB_PART::GetName().