Medical Imaging Interaction Toolkit
2024.06.00
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
18
#include <
org_blueberry_core_expressions_Export.h
>
19
20
#include <
berryObject.h
>
21
22
namespace
berry
{
23
117
class
BERRY_EXPRESSIONS
EvaluationResult
:
public
Object
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
130
static
const
SmartPointer<const EvaluationResult>
FALSE_EVAL
;
132
static
const
SmartPointer<const EvaluationResult>
TRUE_EVAL
;
134
static
const
SmartPointer<const EvaluationResult>
NOT_LOADED
;
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
147
EvaluationResult
(
const
EvaluationResult
& o);
148
149
public
:
150
151
berryObjectMacro
(
berry::EvaluationResult
);
152
153
bool
operator==
(
const
Object
*)
const override
;
154
155
bool
operator!=
(
const
Object
*)
const
;
156
164
EvaluationResult::ConstPointer
And(
const
EvaluationResult::ConstPointer
& other)
const
;
165
173
EvaluationResult::ConstPointer
Or(
const
EvaluationResult::ConstPointer
& other)
const
;
174
180
EvaluationResult::ConstPointer
Not()
const
;
181
194
static
EvaluationResult::ConstPointer
ValueOf(
bool
b);
195
202
QString ToString()
const override
;
203
};
204
205
}
// namespace berry
206
207
#endif
/*BERRYEVALUATIONRESULT_*/
berry::EvaluationResult::TRUE_EVAL
static const SmartPointer< const EvaluationResult > TRUE_EVAL
Definition:
berryEvaluationResult.h:132
berry::EvaluationResult::NOT_LOADED
static const SmartPointer< const EvaluationResult > NOT_LOADED
Definition:
berryEvaluationResult.h:134
berry::EvaluationResult
Definition:
berryEvaluationResult.h:117
berry::SmartPointer
Implements transparent reference counting.
Definition:
berryICommandCategoryListener.h:21
org_blueberry_core_expressions_Export.h
berry::Object
Light weight base class for most BlueBerry classes.
Definition:
berryObject.h:72
mitk::operator!=
MITKCORE_EXPORT bool operator!=(const InteractionEvent &a, const InteractionEvent &b)
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
berry::EvaluationResult::FALSE_EVAL
static const SmartPointer< const EvaluationResult > FALSE_EVAL
Definition:
berryEvaluationResult.h:130
berryObjectMacro
#define berryObjectMacro(...)
Definition:
berryMacros.h:31
BERRY_EXPRESSIONS
#define BERRY_EXPRESSIONS
Definition:
org_blueberry_core_expressions_Export.h:26
berryObject.h
berry
Definition:
QmitkPropertyItemModel.h:24
src
MITK
Plugins
org.blueberry.core.expressions
src
berryEvaluationResult.h
Generated on Mon Jun 17 2024 12:43:21 for Medical Imaging Interaction Toolkit by
1.8.17