wiRedPanda
Home
About
Download
Try out
API Docs
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
4
#include "
App/Core/ItemWithId.h
"
5
6
#include "
App/Scene/SceneItemRegistry.h
"
7
8
ItemWithId::~ItemWithId
()
9
{
10
if
(m_registry) {
11
m_registry->forget(
this
);
12
}
13
}
ItemWithId.h
Defines ItemWithId, the base class for all uniquely identified circuit items.
SceneItemRegistry.h
SceneItemRegistry: maps stable integer IDs to the scene's identifiable items.
ItemWithId::~ItemWithId
virtual ~ItemWithId()
Self-unregisters from the current SceneItemRegistry, if any.
Definition
ItemWithId.cpp:8
App
Core
ItemWithId.cpp
Generated by
1.16.1