KiCad PCB EDA Suite
|
Primary data item for entries in the Net Inspector list. More...
#include <pcb_net_inspector_panel_data_model.h>
Public Types | |
enum class | GROUP_TYPE { NONE , USER_DEFINED , NETCLASS } |
Public Member Functions | |
LIST_ITEM (unsigned int aGroupNumber, const wxString &aGroupName, GROUP_TYPE aGroupType) | |
LIST_ITEM (NETINFO_ITEM *aNet) | |
LIST_ITEM () | |
LIST_ITEM & | operator= (const LIST_ITEM &)=delete |
bool | GetIsGroup () const |
const wxString & | GetGroupName () const |
GROUP_TYPE | GetGroupType () const |
int | GetGroupNumber () const |
auto | ChildrenBegin () const |
auto | ChildrenEnd () const |
unsigned int | ChildrenCount () const |
NETINFO_ITEM * | GetNet () const |
int | GetNetCode () const |
const wxString & | GetNetName () const |
const wxString & | GetNetclassName () const |
void | ResetColumnChangedBits () |
unsigned int | GetPadCount () const |
bool | PadCountChanged () const |
void | SetPadCount (unsigned int aValue) |
void | AddPadCount (unsigned int aValue) |
void | SubPadCount (unsigned int aValue) |
unsigned | GetViaCount () const |
bool | ViaCountChanged () const |
void | SetViaCount (unsigned int aValue) |
void | AddViaCount (unsigned int aValue) |
void | SubViaCount (unsigned int aValue) |
uint64_t | GetViaLength () const |
bool | ViaLengthChanged () const |
void | SetViaLength (unsigned int aValue) |
void | AddViaLength (unsigned int aValue) |
void | SubViaLength (uint64_t aValue) |
uint64_t | GetBoardWireLength () const |
uint64_t | GetLayerWireLength (size_t aLayer) const |
bool | BoardWireLengthChanged () const |
void | SetLayerWireLength (const uint64_t aValue, size_t aLayer) |
void | AddLayerWireLength (const uint64_t aValue, size_t aLayer) |
void | SubLayerWireLength (const uint64_t aValue, size_t aLayer) |
uint64_t | GetPadDieLength () const |
bool | PadDieLengthChanged () const |
void | SetPadDieLength (uint64_t aValue) |
void | AddPadDieLength (uint64_t aValue) |
void | SubPadDieLength (uint64_t aValue) |
unsigned long long int | GetTotalLength () const |
bool | TotalLengthChanged () const |
LIST_ITEM * | Parent () const |
void | SetParent (LIST_ITEM *aParent) |
Private Attributes | |
LIST_ITEM * | m_parent = nullptr |
std::vector< LIST_ITEM * > | m_children |
GROUP_TYPE | m_group_type = GROUP_TYPE::NONE |
unsigned int | m_group_number = 0 |
NETINFO_ITEM * | m_net = nullptr |
unsigned int | m_pad_count = 0 |
unsigned int | m_via_count = 0 |
uint64_t | m_via_length = 0 |
uint64_t | m_pad_die_length = 0 |
std::array< uint64_t, MAX_CU_LAYERS > | m_layer_wire_length {} |
std::vector< int > | m_column_changed |
wxString | m_net_name |
wxString | m_net_class |
wxString | m_group_name |
Primary data item for entries in the Net Inspector list.
This class tracks all data for a given net entry in the net inspector list.
Definition at line 28 of file pcb_net_inspector_panel_data_model.h.
|
strong |
Enumerator | |
---|---|
NONE | |
USER_DEFINED | |
NETCLASS |
Definition at line 31 of file pcb_net_inspector_panel_data_model.h.
|
inline |
Definition at line 38 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_LAST_STATIC_COL, m_column_changed, m_group_name, and MAX_CU_LAYERS.
|
inline |
Definition at line 45 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_LAST_STATIC_COL, NETCLASS::GetName(), NETINFO_ITEM::GetNetClass(), NETINFO_ITEM::GetNetname(), m_column_changed, m_net_class, m_net_name, MAX_CU_LAYERS, and UnescapeString().
|
inline |
Definition at line 53 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_LAST_STATIC_COL, m_column_changed, and MAX_CU_LAYERS.
|
inline |
Definition at line 205 of file pcb_net_inspector_panel_data_model.h.
References AddLayerWireLength(), PCB_NET_INSPECTOR_PANEL::COLUMN_BOARD_LENGTH, m_column_changed, m_layer_wire_length, and m_parent.
Referenced by AddLayerWireLength(), and SetParent().
|
inline |
Definition at line 94 of file pcb_net_inspector_panel_data_model.h.
References AddPadCount(), PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_COUNT, m_column_changed, m_pad_count, and m_parent.
Referenced by AddPadCount(), and SetParent().
|
inline |
Definition at line 236 of file pcb_net_inspector_panel_data_model.h.
References AddPadDieLength(), PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_DIE_LENGTH, m_column_changed, m_pad_die_length, and m_parent.
Referenced by AddPadDieLength(), and SetParent().
|
inline |
Definition at line 125 of file pcb_net_inspector_panel_data_model.h.
References AddViaCount(), PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_COUNT, m_column_changed, m_parent, and m_via_count.
Referenced by AddViaCount(), and SetParent().
|
inline |
Definition at line 156 of file pcb_net_inspector_panel_data_model.h.
References AddViaLength(), PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_LENGTH, m_column_changed, m_parent, and m_via_length.
Referenced by AddViaLength(), and SetParent().
|
inline |
Definition at line 191 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_BOARD_LENGTH, and m_column_changed.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged(), and TotalLengthChanged().
|
inline |
Definition at line 62 of file pcb_net_inspector_panel_data_model.h.
References m_children.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetChildren(), PCB_NET_INSPECTOR_PANEL::highlightSelectedNets(), and PCB_NET_INSPECTOR_PANEL::onDeleteSelectedNet().
|
inline |
Definition at line 64 of file pcb_net_inspector_panel_data_model.h.
References m_children.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::deleteItem(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetChildren(), and PCB_NET_INSPECTOR_PANEL::onDeleteSelectedNet().
|
inline |
Definition at line 63 of file pcb_net_inspector_panel_data_model.h.
References m_children.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetChildren(), PCB_NET_INSPECTOR_PANEL::highlightSelectedNets(), and PCB_NET_INSPECTOR_PANEL::onDeleteSelectedNet().
|
inline |
Definition at line 174 of file pcb_net_inspector_panel_data_model.h.
References m_layer_wire_length.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), GetTotalLength(), and SetLayerWireLength().
|
inline |
Definition at line 58 of file pcb_net_inspector_panel_data_model.h.
References m_group_name.
Referenced by PCB_NET_INSPECTOR_PANEL::onDeleteSelectedNet(), and PCB_NET_INSPECTOR_PANEL::onRemoveSelectedGroup().
|
inline |
Definition at line 60 of file pcb_net_inspector_panel_data_model.h.
References m_group_number.
|
inline |
Definition at line 59 of file pcb_net_inspector_panel_data_model.h.
References m_group_type.
|
inline |
Definition at line 57 of file pcb_net_inspector_panel_data_model.h.
References m_group_type, and NONE.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetChildren(), GetNetCode(), PCB_NET_INSPECTOR_PANEL::highlightSelectedNets(), PCB_NET_INSPECTOR_PANEL::OnConfigButton(), PCB_NET_INSPECTOR_PANEL::onDeleteSelectedNet(), PCB_NET_INSPECTOR_PANEL::OnNetsListContextMenu(), PCB_NET_INSPECTOR_PANEL::onRemoveSelectedGroup(), and PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet().
|
inline |
Definition at line 184 of file pcb_net_inspector_panel_data_model.h.
References m_layer_wire_length.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare().
|
inline |
Definition at line 66 of file pcb_net_inspector_panel_data_model.h.
References m_net.
Referenced by PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet().
|
inline |
Definition at line 74 of file pcb_net_inspector_panel_data_model.h.
References m_net_class.
|
inline |
Definition at line 68 of file pcb_net_inspector_panel_data_model.h.
References GetIsGroup(), NETINFO_ITEM::GetNetCode(), m_group_number, and m_net.
Referenced by PCB_NET_INSPECTOR_PANEL::buildNetsList(), and PCB_NET_INSPECTOR_PANEL::highlightSelectedNets().
|
inline |
Definition at line 73 of file pcb_net_inspector_panel_data_model.h.
References m_net_name.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare().
|
inline |
Definition at line 81 of file pcb_net_inspector_panel_data_model.h.
References m_pad_count.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), SetPadCount(), and SetParent().
|
inline |
Definition at line 223 of file pcb_net_inspector_panel_data_model.h.
References m_pad_die_length.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), GetTotalLength(), SetPadDieLength(), and SetParent().
|
inline |
Definition at line 255 of file pcb_net_inspector_panel_data_model.h.
References GetBoardWireLength(), GetPadDieLength(), and GetViaLength().
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare().
|
inline |
Definition at line 112 of file pcb_net_inspector_panel_data_model.h.
References m_via_count.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), SetParent(), and SetViaCount().
|
inline |
Definition at line 143 of file pcb_net_inspector_panel_data_model.h.
References m_via_length.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::Compare(), GetTotalLength(), SetParent(), and SetViaLength().
|
inline |
Definition at line 83 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_COUNT, and m_column_changed.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged().
|
inline |
Definition at line 225 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_DIE_LENGTH, and m_column_changed.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged(), and TotalLengthChanged().
|
inline |
Definition at line 265 of file pcb_net_inspector_panel_data_model.h.
References m_parent.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::deleteItem(), PCB_NET_INSPECTOR_PANEL::DATA_MODEL::GetParent(), and PCB_NET_INSPECTOR_PANEL::DATA_MODEL::resortIfChanged().
|
inline |
Definition at line 76 of file pcb_net_inspector_panel_data_model.h.
References m_column_changed.
|
inline |
Definition at line 193 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_BOARD_LENGTH, GetBoardWireLength(), m_column_changed, m_layer_wire_length, m_parent, and SetLayerWireLength().
Referenced by SetLayerWireLength().
|
inline |
Definition at line 85 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_COUNT, GetPadCount(), m_column_changed, m_pad_count, m_parent, and SetPadCount().
Referenced by SetPadCount().
|
inline |
Definition at line 227 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_DIE_LENGTH, GetPadDieLength(), m_column_changed, m_pad_die_length, m_parent, and SetPadDieLength().
Referenced by SetPadDieLength().
|
inline |
Definition at line 267 of file pcb_net_inspector_panel_data_model.h.
References AddLayerWireLength(), AddPadCount(), AddPadDieLength(), AddViaCount(), AddViaLength(), GetPadCount(), GetPadDieLength(), GetViaCount(), GetViaLength(), m_children, m_layer_wire_length, m_parent, SubLayerWireLength(), SubPadCount(), SubPadDieLength(), SubViaCount(), and SubViaLength().
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::deleteItem().
|
inline |
Definition at line 116 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_COUNT, GetViaCount(), m_column_changed, m_parent, m_via_count, and SetViaCount().
Referenced by SetViaCount().
|
inline |
Definition at line 147 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_LENGTH, GetViaLength(), m_column_changed, m_parent, m_via_length, and SetViaLength().
Referenced by SetViaLength().
|
inline |
Definition at line 214 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_BOARD_LENGTH, m_column_changed, m_layer_wire_length, m_parent, and SubLayerWireLength().
Referenced by SetParent(), and SubLayerWireLength().
|
inline |
Definition at line 103 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_COUNT, m_column_changed, m_pad_count, m_parent, and SubPadCount().
Referenced by SetParent(), and SubPadCount().
|
inline |
Definition at line 245 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_PAD_DIE_LENGTH, m_column_changed, m_pad_die_length, m_parent, and SubPadDieLength().
Referenced by SetParent(), and SubPadDieLength().
|
inline |
Definition at line 134 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_COUNT, m_column_changed, m_parent, m_via_count, and SubViaCount().
Referenced by SetParent(), and SubViaCount().
|
inline |
Definition at line 165 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_LENGTH, m_column_changed, m_parent, m_via_length, and SubViaLength().
Referenced by SetParent(), and SubViaLength().
|
inline |
Definition at line 260 of file pcb_net_inspector_panel_data_model.h.
References BoardWireLengthChanged(), PadDieLengthChanged(), and ViaLengthChanged().
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged().
|
inline |
Definition at line 114 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_COUNT, and m_column_changed.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged().
|
inline |
Definition at line 145 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_VIA_LENGTH, and m_column_changed.
Referenced by PCB_NET_INSPECTOR_PANEL::DATA_MODEL::itemColumnChanged(), and TotalLengthChanged().
|
private |
Definition at line 306 of file pcb_net_inspector_panel_data_model.h.
Referenced by ChildrenBegin(), ChildrenCount(), ChildrenEnd(), and SetParent().
|
private |
Definition at line 322 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddLayerWireLength(), AddPadCount(), AddPadDieLength(), AddViaCount(), AddViaLength(), BoardWireLengthChanged(), LIST_ITEM(), PadCountChanged(), PadDieLengthChanged(), ResetColumnChangedBits(), SetLayerWireLength(), SetPadCount(), SetPadDieLength(), SetViaCount(), SetViaLength(), SubLayerWireLength(), SubPadCount(), SubPadDieLength(), SubViaCount(), SubViaLength(), ViaCountChanged(), and ViaLengthChanged().
|
private |
Definition at line 327 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetGroupName(), and LIST_ITEM().
|
private |
Definition at line 309 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetGroupNumber(), and GetNetCode().
|
private |
Definition at line 308 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetGroupType(), and GetIsGroup().
|
private |
Definition at line 316 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddLayerWireLength(), GetBoardWireLength(), GetLayerWireLength(), SetLayerWireLength(), SetParent(), and SubLayerWireLength().
|
private |
Definition at line 310 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetNet(), and GetNetCode().
|
private |
Definition at line 326 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetNetclassName(), and LIST_ITEM().
|
private |
Definition at line 325 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetNetName(), and LIST_ITEM().
|
private |
Definition at line 311 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddPadCount(), GetPadCount(), SetPadCount(), and SubPadCount().
|
private |
Definition at line 314 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddPadDieLength(), GetPadDieLength(), SetPadDieLength(), and SubPadDieLength().
|
private |
Definition at line 305 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddLayerWireLength(), AddPadCount(), AddPadDieLength(), AddViaCount(), AddViaLength(), Parent(), SetLayerWireLength(), SetPadCount(), SetPadDieLength(), SetParent(), SetViaCount(), SetViaLength(), SubLayerWireLength(), SubPadCount(), SubPadDieLength(), SubViaCount(), and SubViaLength().
|
private |
Definition at line 312 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddViaCount(), GetViaCount(), SetViaCount(), and SubViaCount().
|
private |
Definition at line 313 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddViaLength(), GetViaLength(), SetViaLength(), and SubViaLength().