KiCad PCB EDA Suite
|
#include <base_set.h>
Classes | |
class | set_bits_iterator |
class | set_bits_reverse_iterator |
Public Types | |
using | iterator = std::vector< int >::iterator |
using | const_iterator = std::vector< int >::const_iterator |
Public Member Functions | |
BASE_SET (size_t size) | |
bool | test (size_t pos) const |
bool | any () const |
bool | all () const |
bool | none () const |
BASE_SET & | set (size_t pos=std::numeric_limits< size_t >::max(), bool value=true) |
BASE_SET & | reset (size_t pos=std::numeric_limits< size_t >::max()) |
BASE_SET & | flip (size_t pos=std::numeric_limits< size_t >::max()) |
size_t | count () const |
size_t | size () const |
void | resize (size_t newSize) |
int & | operator[] (size_t pos) |
const int & | operator[] (size_t pos) const |
int | compare (const BASE_SET &other) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
bool | operator== (const BASE_SET &other) const |
bool | operator< (const BASE_SET &other) const |
template<typename CharT = char> | |
std::basic_string< CharT > | to_string (CharT zero=CharT( '0'), CharT one=CharT( '1')) const |
BASE_SET & | operator&= (const BASE_SET &rhs) |
BASE_SET & | operator|= (const BASE_SET &rhs) |
BASE_SET & | operator^= (const BASE_SET &rhs) |
BASE_SET | operator~ () const |
set_bits_iterator | set_bits_begin () const |
set_bits_iterator | set_bits_end () const |
set_bits_reverse_iterator | set_bits_rbegin () const |
set_bits_reverse_iterator | set_bits_rend () const |
Private Attributes | |
std::vector< int > | m_bits |
Friends | |
std::ostream & | operator<< (std::ostream &os, const BASE_SET &set) |
Definition at line 40 of file base_set.h.
using BASE_SET::const_iterator = std::vector<int>::const_iterator |
Definition at line 44 of file base_set.h.
using BASE_SET::iterator = std::vector<int>::iterator |
Definition at line 43 of file base_set.h.
|
inline |
Definition at line 46 of file base_set.h.
|
inline |
Definition at line 58 of file base_set.h.
Referenced by LSET::AllCuMask().
|
inline |
Definition at line 56 of file base_set.h.
Referenced by collidesWithArea(), compute_pad_access_code(), BOARD_COMMIT::dirtyIntersectingZones(), APPEARANCE_CONTROLS::doApplyLayerPreset(), existsOnLayerFunc(), PCB_IO_KICAD_SEXPR::format(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), BOARD::GetPad(), BOARD_INSPECTION_TOOL::InspectClearance(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), DSN::SPECCTRA_DB::makeIMAGE(), PCBNEW_PRINTOUT::OnPrintPage(), DIALOG_PAD_PROPERTIES::OnUpdateUI(), DRC_RULES_PARSER::parseLayer(), DIALOG_PLOT::Plot(), PCB_CONTROL::pruneItemLayers(), PCB_SELECTION_CONDITIONS::sameLayerFunc(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), DRC_TEST_PROVIDER_MISC::testDisabledLayers(), PANEL_SETUP_LAYERS::TransferDataFromWindow(), and DIALOG_PAD_PROPERTIES::updatePadLayersList().
|
inline |
Definition at line 122 of file base_set.h.
|
inline |
Definition at line 124 of file base_set.h.
|
inline |
Definition at line 117 of file base_set.h.
References alg::lexicographical_compare_3way(), and m_bits.
Referenced by BOOST_AUTO_TEST_CASE(), and PAD::Compare().
|
inline |
Definition at line 107 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE(), PAD::CheckPad(), KIGFX::PCB_PAINTER::Draw(), LSET::ExtractLayer(), PCB_IO_KICAD_SEXPR::format(), ZONE::GetFirstLayer(), ZONE::GetLayer(), BOARD_INSPECTION_TOOL::InspectClearance(), isMaskAperture(), BOARD_ITEM::layerMaskDescribe(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), DIALOG_DRC::OnDRCItemSelected(), APPEARANCE_CONTROLS::OnLayerContextMenu(), PCBNEW_PRINTOUT::OnPrintPage(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), PlotStandardLayer(), PAD::SetAttribute(), BOARD_ITEM::SetLayerSet(), ZONE::SetLayerSet(), PANEL_SETUP_BOARD_STACKUP::showOnlyActiveLayers(), DIALOG_RULE_AREA_PROPERTIES::TransferDataFromWindow(), and PCB_CONTROL::UpdateMessagePanel().
|
inline |
Definition at line 123 of file base_set.h.
|
inline |
Definition at line 125 of file base_set.h.
|
inline |
Definition at line 92 of file base_set.h.
Referenced by DRC_TEST_PROVIDER_MISC::testDisabledLayers().
|
inline |
Definition at line 60 of file base_set.h.
Referenced by HYPERLYNX_PAD_STACK::IsEmpty(), and HYPERLYNX_EXPORTER::writeSinglePadStack().
Definition at line 173 of file base_set.h.
References m_bits.
|
inline |
Definition at line 144 of file base_set.h.
References m_bits.
|
inline |
Definition at line 128 of file base_set.h.
|
inline |
Definition at line 113 of file base_set.h.
|
inline |
Definition at line 115 of file base_set.h.
Definition at line 193 of file base_set.h.
References m_bits.
Definition at line 183 of file base_set.h.
References m_bits.
|
inline |
Definition at line 203 of file base_set.h.
References m_bits.
|
inline |
Definition at line 77 of file base_set.h.
Referenced by BOARD::BOARD(), BOOST_AUTO_TEST_CASE(), ZONE_CREATE_HELPER::createNewZone(), CONVERT_TOOL::CreatePolys(), PADSTACK::Deserialize(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), LSET::Flip(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad(), PARAM_LAYER_PRESET::jsonToPresets(), BOARD_PRINTOUT_SETTINGS::Load(), PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked(), PCB_VIA::PCB_VIA(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), PANEL_SETUP_LAYERS::TransferDataFromWindow(), PANEL_SETUP_LAYERS::TransferDataToWindow(), ZONE::UnFill(), and ZONE_SETTINGS::ZONE_SETTINGS().
|
inline |
Definition at line 111 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 62 of file base_set.h.
Referenced by SCOPED_LAYERSET::Add(), LSET::AllCuMask(), DIALOG_PLOT::applyPlotSettings(), LSET::BackMask(), BOARD::BOARD(), BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), BOARD_PRINTOUT_SETTINGS::BOARD_PRINTOUT_SETTINGS(), BOOST_AUTO_TEST_CASE(), AR_AUTOPLACER::buildFpAreas(), BOARD::ComputeBoundingBox(), ALTIUM_PCB::ConvertFills6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItemOnLayer(), ZONE_CREATE_HELPER::createNewZone(), CONVERT_TOOL::CreatePolys(), PCB_IO_EAGLE::defaultKicadLayer(), FOOTPRINT::Deserialize(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), PCBEXPR_LAYER_VALUE::EqualTo(), existsOnLayerFunc(), EXPORTER_STEP::Export(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), LSET::Flip(), LSET::FrontMask(), AR_AUTOPLACER::genModuleOnRoutingMatrix(), DIALOG_EXPORT_SVG::getCheckBoxSelectedLayers(), PCB_VIA::GetLayerSet(), PANEL_SETUP_LAYERS::GetUILayerMask(), APPEARANCE_CONTROLS::getVisibleLayers(), BOARD_ADAPTER::GetVisibleLayers(), ROUTER_TOOL::handleLayerSwitch(), ALTIUM_PCB::HelperSetZoneLayers(), intersectsAreaFunc(), PARAM_LAYER_PRESET::jsonToPresets(), PCB_IO_KICAD_LEGACY::leg_mask2new(), BOARD_PRINTOUT_SETTINGS::Load(), FABMASTER::loadLayers(), LSET::LSET(), DIALOG_DRC::OnDRCItemSelected(), DIALOG_COPPER_ZONE::OnLayerSelection(), DIALOG_NON_COPPER_ZONES_EDITOR::OnLayerSelection(), DIALOG_RULE_AREA_PROPERTIES::OnLayerSelection(), APPEARANCE_CONTROLS::onLayerVisibilityToggled(), PCBNEW_PRINTOUT::OnPrintPage(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), PCB_PLOT_PARAMS_PARSER::Parse(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked(), PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked(), LSET::ParseHex(), DRC_RULES_PARSER::parseLayer(), PCB_IO_KICAD_SEXPR_PARSER::parseLayers(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), PRIVATE_LAYERS_GRID_TABLE::PRIVATE_LAYERS_GRID_TABLE(), GERBVIEW_FRAME::RemapLayers(), PCB_SELECTION_CONDITIONS::sameLayerFunc(), PCB_SELECTION_TOOL::Selectable(), PAD::SetAttribute(), BOARD_DESIGN_SETTINGS::SetEnabledLayers(), ZONE::SetFillFlag(), DIALOG_PRINT_GERBVIEW::setLayerSetFromList(), DIALOG_PRINT_PCBNEW::setLayerSetFromList(), APPEARANCE_CONTROLS::SetLayerVisible(), GENERAL_COLLECTORS_GUIDE::SetLayerVisible(), ZONE_SETTINGS::SetupLayersList(), GLOBAL_EDIT_TOOL::swapBoardItem(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), kiapi::board::UnpackLayerSet(), PANEL_SETUP_BOARD_STACKUP::updateCopperLayerCount(), RATSNEST_VIEW_ITEM::ViewDraw(), and ZONE_SETTINGS::ZONE_SETTINGS().
|
inline |
Definition at line 300 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 301 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 303 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 307 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 109 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE(), collidesWithArea(), DIALOG_PLOT::DIALOG_PLOT(), LSET::ExtractLayer(), PCB_VIA::FlashLayer(), LSET::FmtBin(), LSET::FmtHex(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad(), CN_VISITOR::operator()(), operator==(), LSET::ParseHex(), DRC_TEST_PROVIDER_DISALLOW::Run(), LSET::RunOnLayers(), BOARD_PRINTOUT_SETTINGS::Save(), and LSET::Seq().
|
inline |
Definition at line 48 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE(), collidesWithArea(), DIALOG_PLOT::DIALOG_PLOT(), BOARD_COMMIT::dirtyIntersectingZones(), APPEARANCE_CONTROLS::doApplyLayerPreset(), KIGFX::PCB_PAINTER::draw(), KIGFX::PCB_PAINTER::Draw(), DRAWING_TOOL::DrawVia(), PCB_VIA::FlashLayer(), LSET::Flip(), FOOTPRINT::GetBoundingBox(), FOOTPRINT::GetBoundingHull(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), ZONE::GetFillFlag(), FOOTPRINT::GetLayerBoundingBox(), PCB_VIA::GetLayerSet(), BOARD_ADAPTER::GetVisibleLayers(), ROUTER_TOOL::handleLayerSwitch(), BOARD_INSPECTION_TOOL::InspectClearance(), PCB_LAYER_BOX_SELECTOR::isLayerEnabled(), PAD::IsOnLayer(), PCB_VIA::IsOnLayer(), ZONE::IsOnLayer(), LoadBoard(), DIALOG_DRC::OnDRCItemSelected(), APPEARANCE_CONTROLS::OnLayerContextMenu(), APPEARANCE_CONTROLS::onLayerVisibilityToggled(), DIALOG_CLEANUP_GRAPHICS::OnSelectItem(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), DIALOG_PAD_PROPERTIES::OnUpdateUI(), PCB_EDIT_FRAME::OpenProjectFiles(), CN_VISITOR::operator()(), PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked(), BRDITEMS_PLOTTER::PlotFootprintGraphicItems(), BRDITEMS_PLOTTER::PlotFootprintTextItems(), PCB_BASE_EDIT_FRAME::PutDataInPreviousState(), PAD::Recombine(), DRC_TEST_PROVIDER_DISALLOW::Run(), BOARD_PRINTOUT_SETTINGS::Save(), PAD::SetAttribute(), APPEARANCE_CONTROLS::SetLayerVisible(), PCB_BASE_FRAME::SetPlotSettings(), ZONE_SETTINGS::SetupLayersList(), PCBNEW_PRINTOUT::setupViewLayers(), DRC_TEST_PROVIDER_MISC::testDisabledLayers(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testKnockoutTextAgainstZone(), DRC_TEST_PROVIDER_SOLDER_MASK::testMaskItemAgainstZones(), FOOTPRINT::TextOnly(), DIALOG_SWAP_LAYERS::TransferDataFromWindow(), DIALOG_SWAP_LAYERS::TransferDataToWindow(), DIALOG_PAD_PROPERTIES::updatePadLayersList(), and PCB_EDIT_FRAME::UpdateUserInterface().
|
inline |
Definition at line 157 of file base_set.h.
|
friend |
Definition at line 150 of file base_set.h.
|
private |
Definition at line 313 of file base_set.h.
Referenced by compare(), operator&=(), operator<(), operator==(), operator^=(), operator|=(), and operator~().