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

Workaround to keep the original priorities if user didn't change any. More...

#include <managed_zone.h>

Inheritance diagram for MANAGED_ZONE:
ZONE_MANAGEMENT_BASE

Public Member Functions

 MANAGED_ZONE (std::shared_ptr< ZONE > aZone, unsigned aInitialIndex)
 
 MANAGED_ZONE ()=delete
 
 ~MANAGED_ZONE () override=default
 
bool PriorityChanged () const
 
unsigned GetCurrentPriority () const
 
void OnUserConfirmChange () override
 
ZONE const & GetZone () const
 
ZONEGetZone ()
 

Private Attributes

std::shared_ptr< ZONEm_zone
 
const unsigned m_initialPriority
 
unsigned m_currentPriority
 

Friends

class MODEL_ZONES_OVERVIEW_TABLE
 

Detailed Description

Workaround to keep the original priorities if user didn't change any.

Definition at line 37 of file managed_zone.h.

Constructor & Destructor Documentation

◆ MANAGED_ZONE() [1/2]

MANAGED_ZONE::MANAGED_ZONE ( std::shared_ptr< ZONE aZone,
unsigned  aInitialIndex 
)
inline

Definition at line 42 of file managed_zone.h.

◆ MANAGED_ZONE() [2/2]

MANAGED_ZONE::MANAGED_ZONE ( )
delete

◆ ~MANAGED_ZONE()

MANAGED_ZONE::~MANAGED_ZONE ( )
overridedefault

Member Function Documentation

◆ GetCurrentPriority()

unsigned MANAGED_ZONE::GetCurrentPriority ( ) const
inline

Definition at line 55 of file managed_zone.h.

References m_currentPriority.

◆ GetZone() [1/2]

ZONE & MANAGED_ZONE::GetZone ( )
inline

Definition at line 61 of file managed_zone.h.

References m_zone.

◆ GetZone() [2/2]

ZONE const & MANAGED_ZONE::GetZone ( ) const
inline

Definition at line 59 of file managed_zone.h.

References m_zone.

◆ OnUserConfirmChange()

void MANAGED_ZONE::OnUserConfirmChange ( )
inlineoverridevirtual

Implements ZONE_MANAGEMENT_BASE.

Definition at line 57 of file managed_zone.h.

References m_currentPriority, and m_zone.

◆ PriorityChanged()

bool MANAGED_ZONE::PriorityChanged ( ) const
inline

Definition at line 53 of file managed_zone.h.

References m_currentPriority, and m_initialPriority.

Friends And Related Function Documentation

◆ MODEL_ZONES_OVERVIEW_TABLE

friend class MODEL_ZONES_OVERVIEW_TABLE
friend

Definition at line 39 of file managed_zone.h.

Member Data Documentation

◆ m_currentPriority

unsigned MANAGED_ZONE::m_currentPriority
private

Definition at line 66 of file managed_zone.h.

Referenced by GetCurrentPriority(), OnUserConfirmChange(), and PriorityChanged().

◆ m_initialPriority

const unsigned MANAGED_ZONE::m_initialPriority
private

Definition at line 65 of file managed_zone.h.

Referenced by PriorityChanged().

◆ m_zone

std::shared_ptr<ZONE> MANAGED_ZONE::m_zone
private

Definition at line 64 of file managed_zone.h.

Referenced by GetZone(), and OnUserConfirmChange().


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