STIR 6.4.0
SegmentIndices.h
Go to the documentation of this file.
1//
2//
12/*
13 Copyright (C) 2023, University College London
14 This file is part of STIR.
15
16 SPDX-License-Identifier: Apache-2.0
17
18 See STIR/LICENSE.txt for details
19*/
20
21#ifndef __stir_SegmentIndices_h__
22#define __stir_SegmentIndices_h__
23
24#include "stir/common.h"
25
26START_NAMESPACE_STIR
27
34{
35public:
37 explicit inline SegmentIndices(const int segment_num = 0, const int timing_pos_num = 0);
38
40 inline int segment_num() const;
41
43 inline int& segment_num();
44
46 inline int timing_pos_num() const;
47
49 inline int& timing_pos_num();
50
52
55 inline bool operator<(const SegmentIndices& other) const;
56
58 inline bool operator==(const SegmentIndices& other) const;
59 inline bool operator!=(const SegmentIndices& other) const;
60
61private:
62 int _segment;
63 int _timing_pos;
64};
65
66END_NAMESPACE_STIR
67
69
70#endif
inline implementations for class stir::SegmentIndices
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
basic configuration include file