34 std::erase_if( aNames,
35 [](
const wxString& aName )
37 return aName.IsEmpty();
55 m_groups.push_back( std::move( aGroup ) );
72 if(
group.Contains( aName ) )
void Add(JUMPER_GROUP aGroup)
Add a JUMPER_GROUP to the set.
std::vector< JUMPER_GROUP > m_groups
const JUMPER_GROUP * FindContaining(const wxString &aName) const
Represents a group of jumper pins or pads, keyed by name.
static std::optional< JUMPER_GROUP > Make(std::set< wxString > aNames)
Factory method to create a JUMPER_GROUP from a set of names.
std::set< wxString > m_names
JUMPER_GROUP(std::set< wxString > aNames)
bool Contains(const wxString &aName) const