Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryParameterization.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYPARAMETERIZATION_H_
19 #define BERRYPARAMETERIZATION_H_
20 
22 
23 #include <QString>
24 
25 #include <berrySmartPointer.h>
26 
27 namespace berry {
28 
29 struct IParameter;
30 
41 
42 private:
43 
48  static const uint HASH_CODE_NOT_COMPUTED; // = 0;
49 
53  static const uint HASH_FACTOR; // = 89;
54 
58  static const uint HASH_INITIAL;
59 
64  mutable uint hashCode;
65 
71 
76  QString value;
77 
78 
79 public:
80 
90  Parameterization(const SmartPointer<const IParameter> parameter, const QString& value);
91 
96 
97  Parameterization& operator=(const Parameterization& p);
98 
99  /* (non-Javadoc)
100  * @see java.lang.Object#equals(java.lang.Object)
101  */
102  bool operator==(const Parameterization& parameterization) const;
103 
104  operator bool() const;
105 
111  SmartPointer<const IParameter> GetParameter() const;
112 
118  QString GetValue() const;
119 
129  QString GetValueName() const;
130 
131  /*
132  * @see java.lang.Object#hashCode()
133  */
134  uint HashCode() const;
135 };
136 
137 }
138 
139 #endif /* BERRYPARAMETERIZATION_H_ */
Implements transparent reference counting.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
unsigned int uint