wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
ItemWithId.cpp
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
5
7
9{
10 if (m_registry) {
11 m_registry->forget(this);
12 }
13}
Defines ItemWithId, the base class for all uniquely identified circuit items.
SceneItemRegistry: maps stable integer IDs to the scene's identifiable items.
virtual ~ItemWithId()
Self-unregisters from the current SceneItemRegistry, if any.
Definition ItemWithId.cpp:8