KiCad PCB EDA Suite
Loading...
Searching...
No Matches
MINOPTMAX< T > Class Template Reference

#include <minoptmax.h>

Public Member Functions

T Min () const
 
T Max () const
 
T 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
 
T m_min {}
 
T m_opt {}
 
T 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()

◆ IsNull()

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

Definition at line 45 of file minoptmax.h.

References m_isNull.

Referenced by DRAWING_TOOL::PlaceTuningPattern().

◆ Max()

◆ Min()

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

Definition at line 33 of file minoptmax.h.

References m_hasMin, m_min, and T.

Referenced by ZONE_FILLER::buildCopperItemClearances(), ZONE_FILLER::buildThermalSpokes(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkLengths(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkSkews(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkViaCounts(), MOCK_RULE_RESOLVER::Clearance(), PNS::MEANDER_PLACER_BASE::Clearance(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), DRAWING_TOOL::DrawVia(), DRC_ENGINE::EvalRules(), BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue(), PCB_VIA::GetMinAnnulus(), BOARD_CONNECTED_ITEM::GetOwnClearance(), PAD::GetOwnClearance(), PNS_KICAD_IFACE_BASE::ImportSizes(), BOARD_INSPECTION_TOOL::InspectClearance(), BOARD_INSPECTION_TOOL::InspectDRCError(), ZONE_FILLER::knockoutThermalReliefs(), EDA_UNIT_UTILS::UI::MessageTextFromMinOptMax(), Opt(), reportMin(), DRC_CACHE_GENERATOR::Run(), DRC_INTERACTIVE_COURTYARD_CLEARANCE::Run(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::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(), test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run(), PNS::MEANDER_SETTINGS::SetTargetLength(), PNS::MEANDER_SETTINGS::SetTargetLengthDelay(), PNS::MEANDER_SETTINGS::SetTargetSkew(), PNS::MEANDER_SETTINGS::SetTargetSkewDelay(), PCB_EDIT_FRAME::SetTrackSegmentWidth(), DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances(), DRC_TEST_PROVIDER_CREEPAGE::testCreepage(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testKnockoutTextAgainstZone(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testShapeLineChain(), DRC_TEST_PROVIDER_SOLDER_MASK::testSilkToMaskClearance(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testZoneLayer(), DRC_TEST_PROVIDER_ZONE_CONNECTIONS::testZoneLayer(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testZonesToZones(), PCB_CONTROL::UpdateMessagePanel(), and ROUTER_TOOL::updateSizesAfterRouterEvent().

◆ Opt()

◆ SetMax()

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

Definition at line 42 of file minoptmax.h.

References m_hasMax, m_isNull, m_max, and T.

Referenced by DRC_ENGINE::EvalRules(), and DRC_RULES_PARSER::parseConstraint().

◆ SetMin()

◆ SetOpt()

template<class T = int>
void MINOPTMAX< T >::SetOpt ( T 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 HasMax(), Max(), and SetMax().

◆ m_hasMin

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

Definition at line 52 of file minoptmax.h.

Referenced by HasMin(), Min(), and SetMin().

◆ m_hasOpt

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

Definition at line 53 of file minoptmax.h.

Referenced by HasOpt(), Opt(), and SetOpt().

◆ m_isNull

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

Definition at line 48 of file minoptmax.h.

Referenced by IsNull(), SetMax(), SetMin(), and SetOpt().

◆ m_max

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

Definition at line 51 of file minoptmax.h.

Referenced by Max(), and SetMax().

◆ m_min

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

Definition at line 49 of file minoptmax.h.

Referenced by Min(), and SetMin().

◆ m_opt

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

Definition at line 50 of file minoptmax.h.

Referenced by Opt(), and SetOpt().


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