KiCad PCB EDA Suite
MINOPTMAX< T > Class Template Reference

#include <minoptmax.h>

Public Member Functions

Min () const
 
Max () const
 
Opt () const
 
bool HasMin () const
 
bool HasMax () const
 
bool HasOpt () const
 
void SetMin (T v)
 
void SetMax (T v)
 
void SetOpt (T v)
 
bool IsNull () const
 

Private Attributes

bool m_isNull = true
 
m_min {}
 
m_opt {}
 
m_max {}
 
bool m_hasMin = false
 
bool m_hasOpt = false
 
bool m_hasMax = false
 

Detailed Description

template<class T = int>
class MINOPTMAX< T >

Definition at line 30 of file minoptmax.h.

Member Function Documentation

◆ HasMax()

◆ HasMin()

◆ HasOpt()

template<class T = int>
bool MINOPTMAX< T >::HasOpt ( ) const
inline

Definition at line 39 of file minoptmax.h.

39{ return m_hasOpt; }
bool m_hasOpt
Definition: minoptmax.h:53

References MINOPTMAX< T >::m_hasOpt.

Referenced by reportOpt().

◆ IsNull()

template<class T = int>
bool MINOPTMAX< T >::IsNull ( ) const
inline

Definition at line 45 of file minoptmax.h.

45{ return m_isNull; }
bool m_isNull
Definition: minoptmax.h:48

References MINOPTMAX< T >::m_isNull.

◆ Max()

◆ Min()

template<class T = int>
T MINOPTMAX< T >::Min ( ) const
inline

Definition at line 33 of file minoptmax.h.

33{ return m_hasMin ? m_min : 0; };

References MINOPTMAX< T >::m_hasMin, and MINOPTMAX< T >::m_min.

Referenced by ZONE_FILLER::buildCopperItemClearances(), ZONE_FILLER::buildThermalSpokes(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkLengths(), DRC_TEST_PROVIDER_HOLE_SIZE::checkPadHole(), DRC_TEST_PROVIDER_HOLE_SIZE::checkViaHole(), PNS::MEANDER_PLACER_BASE::Clearance(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), DRAWING_TOOL::DrawVia(), DRC_ENGINE::EvalRules(), ZONE_FILLER::fillNonCopperZone(), BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue(), PCB_VIA::GetMinAnnulus(), PCB_TRACK::GetMsgPanelInfo(), BOARD_CONNECTED_ITEM::GetOwnClearance(), PAD::GetOwnClearance(), PNS_PCBNEW_RULE_RESOLVER::HoleClearance(), PNS_PCBNEW_RULE_RESOLVER::HoleToHoleClearance(), PNS_KICAD_IFACE_BASE::ImportSizes(), BOARD_INSPECTION_TOOL::InspectClearance(), BOARD_INSPECTION_TOOL::InspectDRCError(), ZONE_FILLER::knockoutThermalReliefs(), MINOPTMAX< T >::Opt(), reportMin(), DRC_CACHE_GENERATOR::Run(), DRC_TEST_PROVIDER_ANNULAR_WIDTH::Run(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::Run(), test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::Run(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), DRC_TEST_PROVIDER_SOLDER_MASK::Run(), DRC_TEST_PROVIDER_TEXT_DIMS::Run(), DRC_TEST_PROVIDER_TRACK_WIDTH::Run(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE_ON_MOVE::Run(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testShapeLineChain(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackAgainstItem(), DRC_TEST_PROVIDER_ZONE_CONNECTIONS::testZoneLayer(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testZoneLayer(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testZonesToZones(), ROUTER_TOOL::UpdateMessagePanel(), and PCB_CONTROL::UpdateMessagePanel().

◆ Opt()

◆ SetMax()

template<class T = int>
void MINOPTMAX< T >::SetMax ( v)
inline

◆ SetMin()

template<class T = int>
void MINOPTMAX< T >::SetMin ( v)
inline

◆ SetOpt()

template<class T = int>
void MINOPTMAX< T >::SetOpt ( v)
inline

Member Data Documentation

◆ m_hasMax

template<class T = int>
bool MINOPTMAX< T >::m_hasMax = false
private

Definition at line 54 of file minoptmax.h.

Referenced by MINOPTMAX< T >::HasMax(), MINOPTMAX< T >::Max(), and MINOPTMAX< T >::SetMax().

◆ m_hasMin

template<class T = int>
bool MINOPTMAX< T >::m_hasMin = false
private

Definition at line 52 of file minoptmax.h.

Referenced by MINOPTMAX< T >::HasMin(), MINOPTMAX< T >::Min(), and MINOPTMAX< T >::SetMin().

◆ m_hasOpt

template<class T = int>
bool MINOPTMAX< T >::m_hasOpt = false
private

Definition at line 53 of file minoptmax.h.

Referenced by MINOPTMAX< T >::HasOpt(), MINOPTMAX< T >::Opt(), and MINOPTMAX< T >::SetOpt().

◆ m_isNull

template<class T = int>
bool MINOPTMAX< T >::m_isNull = true
private

◆ m_max

template<class T = int>
T MINOPTMAX< T >::m_max {}
private

Definition at line 51 of file minoptmax.h.

Referenced by MINOPTMAX< T >::Max(), and MINOPTMAX< T >::SetMax().

◆ m_min

template<class T = int>
T MINOPTMAX< T >::m_min {}
private

Definition at line 49 of file minoptmax.h.

Referenced by MINOPTMAX< T >::Min(), and MINOPTMAX< T >::SetMin().

◆ m_opt

template<class T = int>
T MINOPTMAX< T >::m_opt {}
private

Definition at line 50 of file minoptmax.h.

Referenced by MINOPTMAX< T >::Opt(), and MINOPTMAX< T >::SetOpt().


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