17 #ifndef BERRYHANDLEOBJECT_H_
18 #define BERRYHANDLEOBJECT_H_
64 static const uint HASH_CODE_NOT_COMPUTED;
69 static const uint HASH_FACTOR;
74 static const uint HASH_INITIAL;
80 mutable uint hashCode;
128 QString GetId()
const;
137 if (hashCode == HASH_CODE_NOT_COMPUTED)
139 hashCode = HASH_INITIAL * HASH_FACTOR +
qHash(
id);
140 if (hashCode == HASH_CODE_NOT_COMPUTED)
156 bool IsDefined()
const;
163 virtual void Undefine() = 0;
virtual uint HashCode() const override
Light weight base class for most BlueBerry classes.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
#define berryObjectMacro(...)
uint qHash(const berry::Object &o)