KiCad PCB EDA Suite
Loading...
Searching...
No Matches
JUMPER_GROUP Class Reference

Represents a group of jumper pins or pads, keyed by name. More...

#include <jumper_group.h>

Public Member Functions

bool Contains (const wxString &aName) const
 
const std::set< wxString > & GetNames () const
 
bool operator== (const JUMPER_GROUP &aOther) const =default
 

Static Public Member Functions

static std::optional< JUMPER_GROUPMake (std::set< wxString > aNames)
 Factory method to create a JUMPER_GROUP from a set of names.
 

Private Member Functions

 JUMPER_GROUP (std::set< wxString > aNames)
 

Private Attributes

std::set< wxString > m_names
 

Detailed Description

Represents a group of jumper pins or pads, keyed by name.

A jumper group always has at least one non-blank name.

Jumper groups are agnostic to whether they are associated with a symbol or footprint.

Definition at line 38 of file jumper_group.h.

Constructor & Destructor Documentation

◆ JUMPER_GROUP()

JUMPER_GROUP::JUMPER_GROUP ( std::set< wxString > aNames)
explicitprivate

Definition at line 25 of file jumper_group.cpp.

References m_names, and move.

Referenced by Make(), and operator==().

Member Function Documentation

◆ Contains()

bool JUMPER_GROUP::Contains ( const wxString & aName) const

Definition at line 47 of file jumper_group.cpp.

References m_names.

◆ GetNames()

const std::set< wxString > & JUMPER_GROUP::GetNames ( ) const
inline

Definition at line 49 of file jumper_group.h.

References m_names.

◆ Make()

◆ operator==()

bool JUMPER_GROUP::operator== ( const JUMPER_GROUP & aOther) const
default

References JUMPER_GROUP().

Member Data Documentation

◆ m_names

std::set<wxString> JUMPER_GROUP::m_names
private

Definition at line 57 of file jumper_group.h.

Referenced by Contains(), GetNames(), and JUMPER_GROUP().


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