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 |
void | SetLayerCount (unsigned int aValue) |
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 (PCB_LAYER_ID aLayer) const |
bool | BoardWireLengthChanged () const |
void | SetLayerWireLength (const uint64_t aValue, PCB_LAYER_ID aLayer) |
std::map< PCB_LAYER_ID, uint64_t > | GetLayerWireLength () const |
void | SetLayerWireLength (const std::map< PCB_LAYER_ID, uint64_t > &aValue) |
void | AddLayerWireLength (const uint64_t aValue, PCB_LAYER_ID aLayer) |
void | SubLayerWireLength (const uint64_t aValue, PCB_LAYER_ID 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::map< PCB_LAYER_ID, uint64_t > | 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 31 of file pcb_net_inspector_panel_data_model.h.
|
strong |
Enumerator | |
---|---|
NONE | |
USER_DEFINED | |
NETCLASS |
Definition at line 34 of file pcb_net_inspector_panel_data_model.h.
|
inline |
Definition at line 41 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_LAST_STATIC_COL, m_column_changed, and m_group_name.
|
inline |
Definition at line 50 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, and UnescapeString().
|
inline |
Definition at line 60 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_LAST_STATIC_COL, and m_column_changed.
|
inline |
Definition at line 229 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 106 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 260 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 137 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 168 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 202 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 69 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 71 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 70 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 186 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 65 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 67 of file pcb_net_inspector_panel_data_model.h.
References m_group_number.
|
inline |
Definition at line 66 of file pcb_net_inspector_panel_data_model.h.
References m_group_type.
|
inline |
Definition at line 64 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(), and PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet().
|
inline |
Definition at line 222 of file pcb_net_inspector_panel_data_model.h.
References m_layer_wire_length.
|
inline |
Definition at line 196 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 78 of file pcb_net_inspector_panel_data_model.h.
References m_net.
Referenced by PCB_NET_INSPECTOR_PANEL::onRenameSelectedNet().
|
inline |
Definition at line 86 of file pcb_net_inspector_panel_data_model.h.
References m_net_class.
|
inline |
Definition at line 80 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 85 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 93 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 247 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 279 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 124 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 155 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 95 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 249 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 289 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 88 of file pcb_net_inspector_panel_data_model.h.
References m_column_changed.
|
inline |
Definition at line 73 of file pcb_net_inspector_panel_data_model.h.
References PCB_NET_INSPECTOR_PANEL::COLUMN_LAST_STATIC_COL, and m_column_changed.
|
inline |
Definition at line 224 of file pcb_net_inspector_panel_data_model.h.
References m_layer_wire_length.
|
inline |
Definition at line 204 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 97 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 251 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 291 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 128 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 159 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 238 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 115 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 269 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 146 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 177 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 284 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 126 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 157 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 330 of file pcb_net_inspector_panel_data_model.h.
Referenced by ChildrenBegin(), ChildrenCount(), ChildrenEnd(), and SetParent().
|
private |
Definition at line 346 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddLayerWireLength(), AddPadCount(), AddPadDieLength(), AddViaCount(), AddViaLength(), BoardWireLengthChanged(), LIST_ITEM(), PadCountChanged(), PadDieLengthChanged(), ResetColumnChangedBits(), SetLayerCount(), SetLayerWireLength(), SetPadCount(), SetPadDieLength(), SetViaCount(), SetViaLength(), SubLayerWireLength(), SubPadCount(), SubPadDieLength(), SubViaCount(), SubViaLength(), ViaCountChanged(), and ViaLengthChanged().
|
private |
Definition at line 351 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetGroupName(), and LIST_ITEM().
|
private |
Definition at line 333 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetGroupNumber(), and GetNetCode().
|
private |
Definition at line 332 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetGroupType(), and GetIsGroup().
|
private |
Definition at line 340 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddLayerWireLength(), GetBoardWireLength(), GetLayerWireLength(), SetLayerWireLength(), SetParent(), and SubLayerWireLength().
|
private |
Definition at line 334 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetNet(), and GetNetCode().
|
private |
Definition at line 350 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetNetclassName(), and LIST_ITEM().
|
private |
Definition at line 349 of file pcb_net_inspector_panel_data_model.h.
Referenced by GetNetName(), and LIST_ITEM().
|
private |
Definition at line 335 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddPadCount(), GetPadCount(), SetPadCount(), and SubPadCount().
|
private |
Definition at line 338 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddPadDieLength(), GetPadDieLength(), SetPadDieLength(), and SubPadDieLength().
|
private |
Definition at line 329 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 336 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddViaCount(), GetViaCount(), SetViaCount(), and SubViaCount().
|
private |
Definition at line 337 of file pcb_net_inspector_panel_data_model.h.
Referenced by AddViaLength(), GetViaLength(), SetViaLength(), and SubViaLength().