Medical Imaging Interaction Toolkit
2024.06.99-e4ca64e0
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef BERRYOBJECT_H_
14 #define BERRYOBJECT_H_
30 #pragma warning( disable : 4250 4275 )
47 Indent(
int ind = 0) { m_Indent=ind; }
87 static const char* GetStaticClassName();
93 static QList<Reflection::TypeInfo> GetStaticSuperclasses();
99 virtual void Delete();
113 virtual QString ToString()
const;
118 virtual uint HashCode()
const;
127 void Register()
const;
132 void UnRegister(
bool del =
true)
const;
137 return m_ReferenceCount.loadRelaxed();
142 void SetReferenceCount(
int);
145 { m_DestroyMessage += delegate; }
147 { m_DestroyMessage -= delegate; }
156 #ifdef BLUEBERRY_DEBUG_SMARTPOINTER
157 unsigned int GetTraceId()
const;
159 unsigned int m_TraceId;
160 unsigned int& GetTraceIdCounter()
const;
177 virtual QDebug PrintSelf(QDebug os,
Indent indent)
const;
178 virtual QDebug PrintHeader(QDebug os,
Indent indent)
const;
179 virtual QDebug PrintTrailer(QDebug os,
Indent indent)
const;
190 void operator=(
const Self&);
204 if (obj ==
nullptr)
return;
void AddDestroyListener(const MessageAbstractDelegate<> &delegate) const
QAtomicInt m_ReferenceCount
org_blueberry_core_runtime_EXPORT QString GetClassName(const Object *obj)
static void cleanup(Object *obj)
bool operator<(const StaticParameterMap::ValueType &a, const StaticParameterMap::ValueType &b)
Compares two var lists and returns true if the first list's first item is lower than the second one's...
Event/message/notification class.
Light weight base class for most BlueBerry classes.
Q_DECLARE_METATYPE(mitk::ProcessExecutor::Pointer)
berry::WeakPointer< const Self > ConstWeakPtr
void RemoveDestroyListener(const MessageAbstractDelegate<> &delegate) const
#define org_blueberry_core_runtime_EXPORT
org_blueberry_core_runtime_EXPORT uint qHash(const berry::Object &o)
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
void UnRegister(bool del=true) const
int GetReferenceCount() const
QList< TypeInfo > GetSuperclasses()
berry::SmartPointer< const Self > ConstPointer
org_blueberry_core_runtime_EXPORT QDebug operator<<(QDebug os, const berry::Indent &o)
berry::SmartPointer< Self > Pointer
berry::WeakPointer< Self > WeakPtr
implements a WeakPointer class to deal with circular reference problems.
org_blueberry_core_runtime_EXPORT QDebug operator<<(QDebug os, const berry::Object &o)
QMutex m_ReferenceCountLock