29 wxCHECK_RET( aItem, wxT(
"Nullptr added to group." ) );
33 parentGroup->RemoveItem( aItem );
42 wxCHECK_RET( aItem, wxT(
"Nullptr removed from group." ) );
44 if(
m_items.erase( aItem ) == 1 )
52 item->SetParentGroup(
nullptr );
60 KIID_VECT_LIST members;
63 members.push_back( item->m_Uuid );
A set of EDA_ITEMs (i.e., without duplicates).
std::unordered_set< EDA_ITEM * > m_items
void RemoveItem(EDA_ITEM *aItem)
Remove item from group.
void AddItem(EDA_ITEM *aItem)
Add item to group.
KIID_VECT_LIST GetGroupMemberIds() const
A base class for most all the KiCad significant classes used in schematics and boards.
virtual EDA_GROUP * GetParentGroup() const
virtual void SetParentGroup(EDA_GROUP *aGroup)