Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
berryParameterization.h
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 
13 
14 #ifndef BERRYPARAMETERIZATION_H_
15 #define BERRYPARAMETERIZATION_H_
16 
18 
19 #include <QString>
20 
21 #include <berrySmartPointer.h>
22 
23 namespace berry {
24 
25 struct IParameter;
26 
37 
38 private:
39 
44  static const uint HASH_CODE_NOT_COMPUTED; // = 0;
45 
49  static const uint HASH_FACTOR; // = 89;
50 
54  static const uint HASH_INITIAL;
55 
60  mutable uint hashCode;
61 
67 
72  QString value;
73 
74 
75 public:
76 
86  Parameterization(const SmartPointer<const IParameter> parameter, const QString& value);
87 
92 
93  Parameterization& operator=(const Parameterization& p);
94 
95  /* (non-Javadoc)
96  * @see java.lang.Object#equals(java.lang.Object)
97  */
98  bool operator==(const Parameterization& parameterization) const;
99 
100  operator bool() const;
101 
107  SmartPointer<const IParameter> GetParameter() const;
108 
114  QString GetValue() const;
115 
125  QString GetValueName() const;
126 
127  /*
128  * @see java.lang.Object#hashCode()
129  */
130  uint HashCode() const;
131 };
132 
133 }
134 
135 #endif /* BERRYPARAMETERIZATION_H_ */
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
Implements transparent reference counting.