STIR 6.4.0
ProjMatrixElemsForOneDenselValue.h
Go to the documentation of this file.
1//
2//
12/*
13 Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
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_recon_buildblock_ProjMatrixElemsForOneDenselValue_H__
22#define __stir_recon_buildblock_ProjMatrixElemsForOneDenselValue_H__
23
24#include "stir/Bin.h"
25
26START_NAMESPACE_STIR
27
41class ProjMatrixElemsForOneDenselValue : public Bin
42{
43public:
44 explicit inline ProjMatrixElemsForOneDenselValue(const Bin&);
45
46 inline ProjMatrixElemsForOneDenselValue();
47
49 inline ProjMatrixElemsForOneDenselValue& operator+=(const ProjMatrixElemsForOneDenselValue& el2);
51 inline ProjMatrixElemsForOneDenselValue& operator*=(const float d);
53 inline ProjMatrixElemsForOneDenselValue& operator+=(const float d);
55 inline ProjMatrixElemsForOneDenselValue& operator/=(const float d);
56
57 // TODO
58 inline float get_value() const { return get_bin_value(); }
59 inline void set_value(const float v) { set_bin_value(v); }
60
62
64
67 static inline bool coordinates_equal(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
68
70 static inline bool coordinates_less(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
71
73 friend inline bool operator==(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
74
76 friend inline bool operator<(const ProjMatrixElemsForOneDenselValue& el1, const ProjMatrixElemsForOneDenselValue& el2);
77};
78
79END_NAMESPACE_STIR
80
82
83#endif // __ProjMatrixElemsForOneDenselValue_H__
Declaration of class stir::Bin.
Inline implementations for class stir::ProjMatrixElemsForOneDenselValue.
float get_bin_value() const
get the value after forward projection
Definition Bin.inl:123
Bin()
default constructor (leaves most members uninitialised)
Definition Bin.inl:30
void set_bin_value(float v)
set the value to be back projected
Definition Bin.inl:129
friend bool operator==(const ProjMatrixElemsForOneDenselValue &el1, const ProjMatrixElemsForOneDenselValue &el2)
Checks coordinates and value are equal.
Definition ProjMatrixElemsForOneDenselValue.inl:83
static bool coordinates_less(const ProjMatrixElemsForOneDenselValue &el1, const ProjMatrixElemsForOneDenselValue &el2)
Checks lexicographical order of the coordinates.
Definition ProjMatrixElemsForOneDenselValue.inl:70
ProjMatrixElemsForOneDenselValue & operator/=(const float d)
Divides the value of with a float.
Definition ProjMatrixElemsForOneDenselValue.inl:55
friend bool operator<(const ProjMatrixElemsForOneDenselValue &el1, const ProjMatrixElemsForOneDenselValue &el2)
Checks lexicographical order of the coordinates and the value.
Definition ProjMatrixElemsForOneDenselValue.inl:89
ProjMatrixElemsForOneDenselValue & operator*=(const float d)
Multiplies the value of with a float.
Definition ProjMatrixElemsForOneDenselValue.inl:48
ProjMatrixElemsForOneDenselValue & operator+=(const ProjMatrixElemsForOneDenselValue &el2)
Adds el2.get_value() to the value of the current object.
Definition ProjMatrixElemsForOneDenselValue.inl:32
static bool coordinates_equal(const ProjMatrixElemsForOneDenselValue &el1, const ProjMatrixElemsForOneDenselValue &el2)
Checks if the coordinates are equal.
Definition ProjMatrixElemsForOneDenselValue.inl:62