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
 
T PinnedOpt () 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
 
bool Matches (const T v) 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 26 of file minoptmax.h.

Member Function Documentation

◆ HasMax()

◆ HasMin()

◆ HasOpt()

◆ IsNull()

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

Definition at line 42 of file minoptmax.h.

◆ Matches()

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

Definition at line 44 of file minoptmax.h.

Referenced by PNS::DIFF_PAIR::CoupledSegmentPairs(), and PNS::findCoupledVertices().

◆ Max()

◆ Min()

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

Definition at line 29 of file minoptmax.h.

Referenced by applyBridging(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), ZONE_FILLER::buildCopperItemClearances(), ZONE_FILLER::buildDifferentNetZoneClearances(), ZONE_FILLER::buildHatchZoneThermalRings(), PCB_VIA_STITCH::buildPlacementCells(), ZONE_FILLER::buildThermalSpokes(), PNS::DP_MEANDER_PLACER::calculateTimeDomainTargets(), PNS::MEANDER_PLACER::calculateTimeDomainTargets(), 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(), ComputeWorstViaClearance(), DRC_RULE_LOADER::createConstraintData(), PCB_TUNING_PATTERN::CreateNew(), DRC_ENGINE::EvalClearanceBatch(), DRC_ENGINE::EvalRules(), PNS::Format(), BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue(), DRC_ENGINE::GetCachedOwnClearance(), DRC_TEST_PROVIDER_CREEPAGE::GetMaxConstraint(), PCB_VIA::GetMinAnnulus(), PCB_TUNING_PATTERN::GetPreviewItems(), PNS_KICAD_IFACE_BASE::ImportSizes(), DRC_ENGINE::InitializeClearanceCache(), BOARD_INSPECTION_TOOL::InspectDRCError(), ItemHasDRCViolation(), ZONE_FILLER::knockoutThermalReliefs(), EDA_UNIT_UTILS::UI::MessageTextFromMinOptMax(), MINOPTMAX< int >::Opt(), TEARDROP_MANAGER::pairClearance(), MINOPTMAX< int >::PinnedOpt(), PNS_PCBNEW_RULE_RESOLVER::QueryConstraint(), DRC_ENGINE::QueryDistinctConstraints(), DRC_ENGINE::QueryWorstConstraint(), ZONE_FILLER::refillZoneFromCache(), BOARD_INSPECTION_TOOL::reportClearance(), DRC_TEST_PROVIDER_CREEPAGE::reportCreepageViolation(), 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(), DRC_TEST_PROVIDER_VIA_DIAMETER::Run(), test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run(), PNS::MEANDER_SETTINGS::SetTargetLength(), PNS::MEANDER_SETTINGS::SetTargetLengthDelay(), PNS::MEANDER_SETTINGS::SetTargetSignalLength(), PNS::MEANDER_SETTINGS::SetTargetSignalLengthDelay(), PNS::MEANDER_SETTINGS::SetTargetSkew(), PNS::MEANDER_SETTINGS::SetTargetSkewDelay(), PCB_EDIT_FRAME::SetTrackSegmentWidth(), CREEPAGE_OVERLAY::Start(), 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()

◆ PinnedOpt()

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

◆ SetMax()

◆ SetMin()

◆ SetOpt()

Member Data Documentation

◆ m_hasMax

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

Definition at line 61 of file minoptmax.h.

◆ m_hasMin

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

Definition at line 59 of file minoptmax.h.

◆ m_hasOpt

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

Definition at line 60 of file minoptmax.h.

◆ m_isNull

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

Definition at line 55 of file minoptmax.h.

◆ m_max

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

Definition at line 58 of file minoptmax.h.

◆ m_min

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

Definition at line 56 of file minoptmax.h.

◆ m_opt

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

Definition at line 57 of file minoptmax.h.


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