STIR  6.2.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 
26 START_NAMESPACE_STIR
27 
34 {
35 public:
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 
61 private:
62  int _segment;
63  int _timing_pos;
64 };
65 
66 END_NAMESPACE_STIR
67 
68 #include "stir/SegmentIndices.inl"
69 
70 #endif
A very simple class to store segment numbers and any other indices that define a segment.
Definition: SegmentIndices.h:33
inline implementations for class stir::SegmentIndices
basic configuration include file