STIR
6.4.0
STIR
src
include
stir
Succeeded.h
Go to the documentation of this file.
1
//
2
//
3
#ifndef __stir_Succeeded_H__
4
#define __stir_Succeeded_H__
5
16
/*
17
Copyright (C) 2000 PARAPET partners
18
Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
19
Copyright (C) 2023, University College London
20
This file is part of STIR.
21
22
SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
23
24
See STIR/LICENSE.txt for details
25
*/
26
#include "
stir/common.h
"
27
28
START_NAMESPACE_STIR
29
43
class
Succeeded
44
{
45
public
:
46
enum
value
47
{
48
yes,
49
no
50
};
51
Succeeded(
const
value& v = yes)
52
: v(v)
53
{}
54
bool
operator==(
const
Succeeded& v2)
const
{
return
v == v2.v; }
55
bool
operator!=(
const
Succeeded& v2)
const
{
return
v != v2.v; }
57
bool
succeeded
()
const
{
return
this->v == yes; }
58
59
private
:
60
value v;
61
};
62
63
END_NAMESPACE_STIR
64
65
#endif
stir::Succeeded::succeeded
bool succeeded() const
convenience function returns if it is equal to Succeeded::yes
Definition
Succeeded.h:57
common.h
basic configuration include file
Generated on Wed May 27 2026 17:04:05 for STIR by
1.13.2