24#ifndef __ProjMatrixElemsForOneBinValue_H__
25#define __ProjMatrixElemsForOneBinValue_H__
31template <
int num_dimensions,
typename coordT>
46class ProjMatrixElemsForOneBinValue
51 inline ProjMatrixElemsForOneBinValue();
67 inline ProjMatrixElemsForOneBinValue&
operator+=(
const ProjMatrixElemsForOneBinValue& el2);
69 inline ProjMatrixElemsForOneBinValue&
operator*=(
const float d);
71 inline ProjMatrixElemsForOneBinValue&
operator+=(
const float d);
73 inline ProjMatrixElemsForOneBinValue&
operator/=(
const float d);
81 static inline bool coordinates_equal(
const ProjMatrixElemsForOneBinValue& el1,
const ProjMatrixElemsForOneBinValue& el2);
84 static inline bool coordinates_less(
const ProjMatrixElemsForOneBinValue& el1,
const ProjMatrixElemsForOneBinValue& el2);
87 friend inline bool operator==(
const ProjMatrixElemsForOneBinValue& el1,
const ProjMatrixElemsForOneBinValue& el2);
90 friend inline bool operator<(
const ProjMatrixElemsForOneBinValue& el1,
const ProjMatrixElemsForOneBinValue& el2);
Inline implementations for class stir::ProjMatrixElemsForOneBinValue.
class BasicCoordinate<int num_dimensions, typename coordT> defines num_dimensions -dimensional coordi...
Definition BasicCoordinate.h:57
float get_value() const
Get the value of the matrix element.
Definition ProjMatrixElemsForOneBinValue.inl:79
ProjMatrixElemsForOneBinValue & operator/=(const float d)
Divides the value of with a float.
Definition ProjMatrixElemsForOneBinValue.inl:107
ProjMatrixElemsForOneBinValue & operator*=(const float d)
Multiplies the value of with a float.
Definition ProjMatrixElemsForOneBinValue.inl:100
BasicCoordinate< 3, int > get_coords() const
get the coordinates
Definition ProjMatrixElemsForOneBinValue.inl:55
friend bool operator<(const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2)
Checks lexicographical order of the coordinates and the value.
Definition ProjMatrixElemsForOneBinValue.inl:134
ProjMatrixElemsForOneBinValue & operator+=(const ProjMatrixElemsForOneBinValue &el2)
Adds el2.get_value() to the value of the current object.
Definition ProjMatrixElemsForOneBinValue.inl:85
static bool coordinates_equal(const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2)
Checks if the coordinates are equal.
Definition ProjMatrixElemsForOneBinValue.inl:114
int coord3() const
In effect the same as get_coords()[3] (but faster)
Definition ProjMatrixElemsForOneBinValue.inl:73
int coord1() const
In effect the same as get_coords()[1] (but faster)
Definition ProjMatrixElemsForOneBinValue.inl:61
friend bool operator==(const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2)
Checks coordinates and value are equal.
Definition ProjMatrixElemsForOneBinValue.inl:128
static bool coordinates_less(const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2)
Checks lexicographical order of the coordinates.
Definition ProjMatrixElemsForOneBinValue.inl:121
int coord2() const
In effect the same as get_coords()[2] (but faster)
Definition ProjMatrixElemsForOneBinValue.inl:67
basic configuration include file