STIR 6.4.0
NumericType.inl
Go to the documentation of this file.
1//
2//
13/*
14 Copyright (C) 2000 PARAPET partners
15 Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
16 This file is part of STIR.
17
18 SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
19
20 See STIR/LICENSE.txt for details
21*/
22
23START_NAMESPACE_STIR
24
28
29bool
31{
32 return id == type.id;
33}
34
35bool
36NumericType::operator!=(NumericType type) const
37{
38 return !(*this == type);
39}
40
41END_NAMESPACE_STIR
provides names for some numeric types and methods for finding their properties.
Definition NumericType.h:55
bool operator==(NumericType type) const
comparison operator
Definition NumericType.inl:30
Type
An enum for the supported types.
Definition NumericType.h:62
NumericType(Type t=UNKNOWN_TYPE)
constructor, defaulting to unknown type
Definition NumericType.inl:25
Type id
stores the current type
Definition NumericType.h:78