40 int id()
const {
return m_id; }
Base class providing a unique integer identifier for circuit items.
ItemWithId()=default
Constructs a new ItemWithId with an unassigned ID of -1.
void setId(const int id)
Sets the identifier to id.
friend class SceneItemRegistry
int id() const
Returns the unique integer identifier of this item, or -1 if unassigned.
virtual ~ItemWithId()
Self-unregisters from the current SceneItemRegistry, if any.
Owns the id↔item bookkeeping for a Scene: the id-to-item map and the monotonically increasing last-as...