KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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

◆ IsNull()

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

Definition at line 45 of file minoptmax.h.

References MINOPTMAX< T >::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 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_MATCHED_LENGTH::checkSkews(), DRC_TEST_PROVIDER_MATCHED_LENGTH::checkViaCounts(), DRC_TEST_PROVIDER_HOLE_SIZE::checkViaHole(), PNS::MEANDER_PLACER_BASE::Clearance(), PNS_PCBNEW_RULE_RESOLVER::Clearance(), MOCK_RULE_RESOLVER::Clearance(), DRAWING_TOOL::DrawVia(), DRC_ENGINE::EvalRules(), ZONE_FILLER::fillNonCopperZone(), BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue(), PCB_VIA::GetMinAnnulus(), BOARD_CONNECTED_ITEM::GetOwnClearance(), PAD::GetOwnClearance(), PCB_TUNING_PATTERN::GetPreviewItems(), PCB_TUNING_PATTERN::GetProperties(), PNS_KICAD_IFACE_BASE::ImportSizes(), BOARD_INSPECTION_TOOL::InspectClearance(), BOARD_INSPECTION_TOOL::InspectDRCError(), ZONE_FILLER::knockoutThermalReliefs(), EDA_UNIT_UTILS::UI::MessageTextFromMinOptMax(), PNS::DP_MEANDER_PLACER::Move(), PNS::MEANDER_PLACER::Move(), PNS::MEANDER_SKEW_PLACER::Move(), MINOPTMAX< T >::Opt(), reportMin(), DRC_CACHE_GENERATOR::Run(), DRC_INTERACTIVE_COURTYARD_CLEARANCE::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_SEGMENT_LENGTH::Run(), DRC_TEST_PROVIDER_TRACK_WIDTH::Run(), PNS::MEANDER_SETTINGS::SetTargetLength(), PNS::MEANDER_SETTINGS::SetTargetSkew(), PCB_EDIT_FRAME::SetTrackSegmentWidth(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge(), 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_COPPER_CLEARANCE::testSingleLayerItemAgainstItem(), DRC_TEST_PROVIDER_ZONE_CONNECTIONS::testZoneLayer(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testZoneLayer(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testZonesToZones(), PCB_CONTROL::UpdateMessagePanel(), and ROUTER_TOOL::updateSizesAfterRouterEvent().

◆ Opt()

◆ SetMax()

◆ SetMin()

◆ SetOpt()

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: