STIR 6.4.0
ViewgramIndices.inl
Go to the documentation of this file.
1
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
29
34
35int
37{
38 return _view;
40
41int&
43{
44 return _view;
45}
46
47bool
49{
50 return (_view < other._view) || ((_view == other._view) && base_type::operator<(other));
51}
52
53bool
55{
56 return (_view == other._view) && base_type::operator==(other);
57}
58
59bool
60ViewgramIndices::operator!=(const ViewgramIndices& other) const
61{
62 return !(*this == other);
63}
64END_NAMESPACE_STIR
int segment_num() const
get segment number for const objects
Definition SegmentIndices.inl:32
bool operator<(const SegmentIndices &other) const
comparison operator, only useful for sorting
Definition SegmentIndices.inl:56
SegmentIndices(const int segment_num=0, const int timing_pos_num=0)
constructor segment number as arguments
Definition SegmentIndices.inl:26
bool operator==(const SegmentIndices &other) const
test for equality
Definition SegmentIndices.inl:62
int timing_pos_num() const
get TOF index for const objects
Definition SegmentIndices.inl:44
A very simple class to store all dincies to get a (2D) Viewgram.
Definition ViewgramIndices.h:33
ViewgramIndices()
an empty constructor (sets everything to 0)
Definition ViewgramIndices.inl:25
bool operator==(const ViewgramIndices &other) const
test for equality
Definition ViewgramIndices.inl:54
int view_num() const
get view number for const objects
Definition ViewgramIndices.inl:36
bool operator<(const ViewgramIndices &other) const
comparison operator, only useful for sorting
Definition ViewgramIndices.inl:48