Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
berryIDebugObjectListener.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
14 
15 namespace berry {
16 
18 {
19  if (l == nullptr) return;
20 
21  Types t = l->GetEventTypes();
22 
27  if (t & SMARTPOINTER_CREATED) spDestroyedEvent += SPDelegate(l, &IDebugObjectListener::SmartPointerDestroyed);
28 }
29 
31 {
32  if (l == nullptr) return;
33 
39 }
40 
42 {
43 }
44 
45 }
virtual void ObjectCreated(const Object *)
void AddListener(IDebugObjectListener *listener)
virtual void SmartPointerDestroyed(unsigned int, const Object *)
virtual void ObjectTracingChanged(unsigned int, bool=true, const Object *=nullptr)
MessageDelegate3< IDebugObjectListener, unsigned int, bool, const Object * > TraceDelegate
virtual void SmartPointerCreated(unsigned int, const Object *)
MessageDelegate1< IDebugObjectListener, const Object * > ObjDelegate
MessageDelegate2< IDebugObjectListener, unsigned int, const Object * > SPDelegate
virtual void ObjectDestroyed(const Object *)
virtual Events::Types GetEventTypes() const =0
void RemoveListener(IDebugObjectListener *listener)