Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
berryEvaluationResult.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 #ifndef BERRYEVALUATIONRESULT_
14 #define BERRYEVALUATIONRESULT_
15 
16 #include <string>
17 
19 
20 #include <berryObject.h>
21 
22 namespace berry {
23 
118 {
119 
120 private:
121  int fValue;
122 
123  static const int FALSE_VALUE;
124  static const int TRUE_VALUE;
125  static const int NOT_LOADED_VALUE;
126 
127 public:
128 
135 
136 private:
137 
138  static const SmartPointer<const EvaluationResult> AND[3][3];
139  static const SmartPointer<const EvaluationResult> OR[3][3];
140  static const SmartPointer<const EvaluationResult> NOT[3];
141 
142  /*
143  * No instances outside of <code>EvaluationResult</code>
144  */
145  EvaluationResult(int value);
146 
148 
149 public:
150 
152 
153  bool operator==(const Object*) const override;
154 
155  bool operator!=(const Object*) const;
156 
165 
174 
181 
195 
202  QString ToString() const override;
203 };
204 
205 } // namespace berry
206 
207 #endif /*BERRYEVALUATIONRESULT_*/
static const SmartPointer< const EvaluationResult > NOT_LOADED
bool operator==(const Object *) const override
EvaluationResult::ConstPointer Or(const EvaluationResult::ConstPointer &other) const
EvaluationResult::ConstPointer And(const EvaluationResult::ConstPointer &other) const
berryObjectMacro(berry::EvaluationResult)
QString ToString() const override
bool operator!=(const Object *) const
static const SmartPointer< const EvaluationResult > TRUE_EVAL
static EvaluationResult::ConstPointer ValueOf(bool b)
EvaluationResult::ConstPointer Not() const
static const SmartPointer< const EvaluationResult > FALSE_EVAL
Light weight base class for most BlueBerry classes.
Definition: berryObject.h:73
Implements transparent reference counting.