KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ZONE_SETTINGS_BAG Class Reference

#include <zone_settings_bag.h>

Public Member Functions

 ZONE_SETTINGS_BAG (BOARD *aBoard)
 
 ZONE_SETTINGS_BAG (ZONE *aZone, ZONE_SETTINGS *aSettings)
 
 ZONE_SETTINGS_BAG ()=default
 
std::shared_ptr< ZONE_SETTINGSGetZoneSettings (ZONE *aZone)
 
unsigned GetZonePriority (ZONE *aZone)
 
void SwapPriority (ZONE *aZOne, ZONE *otherZone)
 
void UpdateClonedZones ()
 The cloned list is the working storage.
 
std::vector< ZONE * > & GetOriginalZoneList ()
 
std::vector< ZONE * > & GetClonedZoneList ()
 
std::unordered_map< ZONE *, std::shared_ptr< ZONE > > & GetZonesCloneMap ()
 

Private Attributes

std::unordered_map< ZONE *, std::shared_ptr< ZONE > > m_zonesCloneMap
 
std::unordered_map< ZONE *, std::shared_ptr< ZONE_SETTINGS > > m_zoneSettings
 
std::unordered_map< ZONE *, std::pair< unsigned, unsigned > > m_zonePriorities
 
std::vector< ZONE * > m_clonedZoneList
 
std::vector< ZONE * > m_originalZoneList
 

Detailed Description

Definition at line 36 of file zone_settings_bag.h.

Constructor & Destructor Documentation

◆ ZONE_SETTINGS_BAG() [1/3]

ZONE_SETTINGS_BAG::ZONE_SETTINGS_BAG ( BOARD * aBoard)

◆ ZONE_SETTINGS_BAG() [2/3]

ZONE_SETTINGS_BAG::ZONE_SETTINGS_BAG ( ZONE * aZone,
ZONE_SETTINGS * aSettings )

Definition at line 68 of file zone_settings_bag.cpp.

References m_zoneSettings.

◆ ZONE_SETTINGS_BAG() [3/3]

ZONE_SETTINGS_BAG::ZONE_SETTINGS_BAG ( )
default

Member Function Documentation

◆ GetClonedZoneList()

std::vector< ZONE * > & ZONE_SETTINGS_BAG::GetClonedZoneList ( )
inline

Definition at line 55 of file zone_settings_bag.h.

References m_clonedZoneList.

◆ GetOriginalZoneList()

std::vector< ZONE * > & ZONE_SETTINGS_BAG::GetOriginalZoneList ( )
inline

Definition at line 54 of file zone_settings_bag.h.

References m_originalZoneList.

◆ GetZonePriority()

unsigned ZONE_SETTINGS_BAG::GetZonePriority ( ZONE * aZone)

Definition at line 80 of file zone_settings_bag.cpp.

References m_zonePriorities.

◆ GetZonesCloneMap()

std::unordered_map< ZONE *, std::shared_ptr< ZONE > > & ZONE_SETTINGS_BAG::GetZonesCloneMap ( )
inline

Definition at line 56 of file zone_settings_bag.h.

References m_zonesCloneMap.

◆ GetZoneSettings()

std::shared_ptr< ZONE_SETTINGS > ZONE_SETTINGS_BAG::GetZoneSettings ( ZONE * aZone)

Definition at line 74 of file zone_settings_bag.cpp.

References m_zoneSettings.

◆ SwapPriority()

void ZONE_SETTINGS_BAG::SwapPriority ( ZONE * aZOne,
ZONE * otherZone )

Definition at line 86 of file zone_settings_bag.cpp.

References m_zonePriorities.

◆ UpdateClonedZones()

void ZONE_SETTINGS_BAG::UpdateClonedZones ( )

The cloned list is the working storage.

Definition at line 92 of file zone_settings_bag.cpp.

References m_clonedZoneList, m_zonePriorities, and m_zoneSettings.

Member Data Documentation

◆ m_clonedZoneList

std::vector<ZONE*> ZONE_SETTINGS_BAG::m_clonedZoneList
private

Definition at line 62 of file zone_settings_bag.h.

Referenced by GetClonedZoneList(), UpdateClonedZones(), and ZONE_SETTINGS_BAG().

◆ m_originalZoneList

std::vector<ZONE*> ZONE_SETTINGS_BAG::m_originalZoneList
private

Definition at line 63 of file zone_settings_bag.h.

Referenced by GetOriginalZoneList().

◆ m_zonePriorities

std::unordered_map<ZONE*, std::pair<unsigned, unsigned> > ZONE_SETTINGS_BAG::m_zonePriorities
private

◆ m_zonesCloneMap

std::unordered_map<ZONE*, std::shared_ptr<ZONE> > ZONE_SETTINGS_BAG::m_zonesCloneMap
private

Definition at line 59 of file zone_settings_bag.h.

Referenced by GetZonesCloneMap(), and ZONE_SETTINGS_BAG().

◆ m_zoneSettings

std::unordered_map<ZONE*, std::shared_ptr<ZONE_SETTINGS> > ZONE_SETTINGS_BAG::m_zoneSettings
private

The documentation for this class was generated from the following files: