Medical Imaging Interaction Toolkit
2023.12.00
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();
104 void*
operator new(size_t);
105 void*
operator new[](size_t);
106 void operator delete(
void*);
107 void operator delete[](
void*, size_t);
122 virtual QString ToString()
const;
127 virtual uint HashCode()
const;
136 void Register()
const;
141 void UnRegister(
bool del =
true)
const;
146 return m_ReferenceCount.load();
151 void SetReferenceCount(
int);
154 { m_DestroyMessage += delegate; }
156 { m_DestroyMessage -= delegate; }
165 #ifdef BLUEBERRY_DEBUG_SMARTPOINTER
166 unsigned int GetTraceId()
const;
168 unsigned int m_TraceId;
169 unsigned int& GetTraceIdCounter()
const;
186 virtual QDebug PrintSelf(QDebug os,
Indent indent)
const;
187 virtual QDebug PrintHeader(QDebug os,
Indent indent)
const;
188 virtual QDebug PrintTrailer(QDebug os,
Indent indent)
const;
199 void operator=(
const Self&);
213 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