![]() |
KiCad PCB EDA Suite
|
A container for NETCLASS instances. More...
#include <netclass.h>
Public Types | |
typedef NETCLASS_MAP::iterator | iterator |
typedef NETCLASS_MAP::const_iterator | const_iterator |
Public Member Functions | |
NETCLASSES () | |
~NETCLASSES () | |
void | Clear () |
Destroy any contained NETCLASS instances except the default one, and clears any members from the default one. More... | |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
unsigned | GetCount () const |
NETCLASSPTR | GetDefault () const |
NETCLASS * | GetDefaultPtr () const |
bool | Add (const NETCLASSPTR &aNetclass) |
Add aNetclass and puts it into this NETCLASSES container. More... | |
NETCLASSPTR | Remove (const wxString &aNetName) |
Remove a NETCLASS from this container but does not destroy/delete it. More... | |
NETCLASSPTR | Find (const wxString &aName) const |
Search this container for a NETCLASS given by aName. More... | |
NETCLASS_MAP & | NetClasses () |
Provide public access to m_NetClasses so it gets swigged. More... | |
Private Attributes | |
NETCLASS_MAP | m_NetClasses |
NETCLASSPTR | m_default |
A container for NETCLASS instances.
It owns all its NETCLASSes. This container will always have a default NETCLASS with the name given by const NETCLASS::Default.
Definition at line 218 of file netclass.h.
typedef NETCLASS_MAP::const_iterator NETCLASSES::const_iterator |
Definition at line 238 of file netclass.h.
typedef NETCLASS_MAP::iterator NETCLASSES::iterator |
Definition at line 234 of file netclass.h.
NETCLASSES::NETCLASSES | ( | ) |
Definition at line 79 of file netclass.cpp.
References NETCLASS::Default, and m_default.
NETCLASSES::~NETCLASSES | ( | ) |
Definition at line 85 of file netclass.cpp.
bool NETCLASSES::Add | ( | const NETCLASSPTR & | aNetclass | ) |
Add aNetclass and puts it into this NETCLASSES container.
aNetclass | is netclass to add |
Definition at line 90 of file netclass.cpp.
References NETCLASS::Default, Find(), m_default, m_NetClasses, and name.
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getKiCadNet(), EAGLE_PLUGIN::loadClasses(), LEGACY_PLUGIN::loadNETCLASS(), NET_SETTINGS::NET_SETTINGS(), ALTIUM_PCB::ParseClasses6Data(), and PANEL_SETUP_NETCLASSES::TransferDataFromWindow().
|
inline |
Definition at line 235 of file netclass.h.
Referenced by DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), DSN::SPECCTRA_DB::FromBOARD(), NET_SETTINGS::NET_SETTINGS(), and PANEL_SETUP_NETCLASSES::TransferDataToWindow().
|
inline |
Definition at line 239 of file netclass.h.
|
inline |
Destroy any contained NETCLASS instances except the default one, and clears any members from the default one.
Definition at line 228 of file netclass.h.
Referenced by PCB_CONTROL::AppendBoard(), NET_SETTINGS::NET_SETTINGS(), and PANEL_SETUP_NETCLASSES::TransferDataFromWindow().
|
inline |
Definition at line 236 of file netclass.h.
Referenced by DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), DSN::SPECCTRA_DB::FromBOARD(), and PANEL_SETUP_NETCLASSES::TransferDataToWindow().
|
inline |
Definition at line 240 of file netclass.h.
NETCLASSPTR NETCLASSES::Find | ( | const wxString & | aName | ) | const |
Search this container for a NETCLASS given by aName.
aName | is the name of the NETCLASS to search for. |
Definition at line 132 of file netclass.cpp.
References NETCLASS::Default, GetDefault(), and m_NetClasses.
Referenced by Add(), SCH_EDITOR_CONTROL::AssignNetclass(), BOARD_DESIGN_SETTINGS::GetCurrentMicroViaDrill(), BOARD_DESIGN_SETTINGS::GetCurrentMicroViaSize(), SCH_EDIT_FRAME::KiwayMailIn(), SCH_ITEM::NetClass(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::showNetclass(), BOARD::SynchronizeNetsAndNetClasses(), and PANEL_SETUP_NETCLASSES::TransferDataFromWindow().
|
inline |
Definition at line 245 of file netclass.h.
Referenced by DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildNetclassesGrid(), NET_SETTINGS::NET_SETTINGS(), and PANEL_SETUP_NETCLASSES::TransferDataToWindow().
|
inline |
Definition at line 253 of file netclass.h.
Referenced by Find(), DSN::SPECCTRA_DB::FromBOARD(), DSN::SPECCTRA_DB::FromSESSION(), SCH_LINE::GetPenWidth(), SCH_EDIT_FRAME::GetSchematicJunctionSize(), EAGLE_PLUGIN::Load(), EAGLE_PLUGIN::loadClasses(), DRC_ENGINE::loadImplicitRules(), NET_SETTINGS::NET_SETTINGS(), NETINFO_ITEM::NETINFO_ITEM(), APPEARANCE_CONTROLS::onNetclassContextMenu(), APPEARANCE_CONTROLS::rebuildNets(), NETINFO_ITEM::SetNetClass(), APPEARANCE_CONTROLS::showNetclass(), BOARD::SynchronizeNetsAndNetClasses(), PANEL_SETUP_NETCLASSES::TransferDataFromWindow(), and PANEL_SETUP_NETCLASSES::TransferDataToWindow().
|
inline |
Definition at line 258 of file netclass.h.
Referenced by DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), BOARD_DESIGN_SETTINGS::GetCurrentDiffPairGap(), BOARD_DESIGN_SETTINGS::GetCurrentDiffPairViaGap(), BOARD_DESIGN_SETTINGS::GetCurrentDiffPairWidth(), BOARD_DESIGN_SETTINGS::GetCurrentTrackWidth(), BOARD_DESIGN_SETTINGS::GetCurrentViaDrill(), BOARD_DESIGN_SETTINGS::GetCurrentViaSize(), BOARD_DESIGN_SETTINGS::GetDefault(), SCH_BUS_ENTRY_BASE::GetMsgPanelInfo(), SCH_LINE::GetMsgPanelInfo(), and APPEARANCE_CONTROLS::showNetclass().
|
inline |
Provide public access to m_NetClasses so it gets swigged.
Definition at line 290 of file netclass.h.
Referenced by APPEARANCE_CONTROLS::onNetclassContextMenu(), and APPEARANCE_CONTROLS::rebuildNets().
NETCLASSPTR NETCLASSES::Remove | ( | const wxString & | aNetName | ) |
Remove a NETCLASS from this container but does not destroy/delete it.
aNetName | is the name of the net to delete, and it may not be NETCLASS::Default. |
Definition at line 117 of file netclass.cpp.
References m_NetClasses.
|
private |
Definition at line 294 of file netclass.h.
Referenced by Add(), and NETCLASSES().
|
private |
Definition at line 293 of file netclass.h.