Stores voxel coordinates and the value of the matrix element.
More...
#include "stir/recon_buildblock/ProjMatrixElemsForOneBinValue.h"
|
|
| ProjMatrixElemsForOneBinValue (const BasicCoordinate< 3, int > &coords, const float ivalue=0) |
| BasicCoordinate< 3, int > | get_coords () const |
| | get the coordinates
|
| int | coord1 () const |
| | In effect the same as get_coords()[1] (but faster).
|
| int | coord2 () const |
| | In effect the same as get_coords()[2] (but faster).
|
| int | coord3 () const |
| | In effect the same as get_coords()[3] (but faster).
|
| float | get_value () const |
| | Get the value of the matrix element.
|
| ProjMatrixElemsForOneBinValue & | operator+= (const ProjMatrixElemsForOneBinValue &el2) |
| | Adds el2.get_value() to the value of the current object.
|
| ProjMatrixElemsForOneBinValue & | operator*= (const float d) |
| | Multiplies the value of with a float.
|
| ProjMatrixElemsForOneBinValue & | operator+= (const float d) |
| | Adds a float to the value.
|
| ProjMatrixElemsForOneBinValue & | operator/= (const float d) |
| | Divides the value of with a float.
|
|
| static bool | coordinates_equal (const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2) |
| | Checks if the coordinates are equal.
|
| static bool | coordinates_less (const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2) |
| | Checks lexicographical order of the coordinates.
|
|
| bool | operator== (const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2) |
| | Checks coordinates and value are equal.
|
| bool | operator< (const ProjMatrixElemsForOneBinValue &el1, const ProjMatrixElemsForOneBinValue &el2) |
| | Checks lexicographical order of the coordinates and the value.
|
Stores voxel coordinates and the value of the matrix element.
(Probably) only useful in class ProjMatrixElemsForOneBin.
- Warning
- It is recommended never to use this class name directly, but always use the typedef ProjMatrixElemsForOneBin::value_type.
-
Voxel coordinates are currently stored as shorts for saving memory.
◆ get_coords()
| BasicCoordinate< 3, int > stir::ProjMatrixElemsForOneBinValue::get_coords |
( |
| ) |
const |
|
inline |
◆ coord1()
| int stir::ProjMatrixElemsForOneBinValue::coord1 |
( |
| ) |
const |
|
inline |
◆ coord2()
| int stir::ProjMatrixElemsForOneBinValue::coord2 |
( |
| ) |
const |
|
inline |
◆ coord3()
| int stir::ProjMatrixElemsForOneBinValue::coord3 |
( |
| ) |
const |
|
inline |
◆ get_value()
| float stir::ProjMatrixElemsForOneBinValue::get_value |
( |
| ) |
const |
|
inline |
◆ operator+=() [1/2]
| ProjMatrixElemsForOneBinValue & stir::ProjMatrixElemsForOneBinValue::operator+= |
( |
const ProjMatrixElemsForOneBinValue & | el2 | ) |
|
|
inline |
◆ operator*=()
| ProjMatrixElemsForOneBinValue & stir::ProjMatrixElemsForOneBinValue::operator*= |
( |
const float | d | ) |
|
|
inline |
◆ operator+=() [2/2]
| ProjMatrixElemsForOneBinValue & stir::ProjMatrixElemsForOneBinValue::operator+= |
( |
const float | d | ) |
|
|
inline |
◆ operator/=()
| ProjMatrixElemsForOneBinValue & stir::ProjMatrixElemsForOneBinValue::operator/= |
( |
const float | d | ) |
|
|
inline |
◆ coordinates_equal()
| bool stir::ProjMatrixElemsForOneBinValue::coordinates_equal |
( |
const ProjMatrixElemsForOneBinValue & | el1, |
|
|
const ProjMatrixElemsForOneBinValue & | el2 ) |
|
inlinestatic |
◆ coordinates_less()
| bool stir::ProjMatrixElemsForOneBinValue::coordinates_less |
( |
const ProjMatrixElemsForOneBinValue & | el1, |
|
|
const ProjMatrixElemsForOneBinValue & | el2 ) |
|
inlinestatic |
◆ operator==
| bool operator== |
( |
const ProjMatrixElemsForOneBinValue & | el1, |
|
|
const ProjMatrixElemsForOneBinValue & | el2 ) |
|
friend |
◆ operator<
| bool operator< |
( |
const ProjMatrixElemsForOneBinValue & | el1, |
|
|
const ProjMatrixElemsForOneBinValue & | el2 ) |
|
friend |
Checks lexicographical order of the coordinates and the value.
References operator<.
Referenced by operator<.
The documentation for this class was generated from the following files: