4 #ifndef __stir_recon_buildblock_ProjMatrixElemsForOneBin__ 5 #define __stir_recon_buildblock_ProjMatrixElemsForOneBin__ 39 template <
int num_dimensions,
typename elemT>
40 class DiscretisedDensity;
82 typedef std::vector<value_type> Element_vector;
87 typedef Element_vector::const_iterator const_iterator;
88 typedef Element_vector::size_type size_type;
89 typedef Element_vector::difference_type difference_type;
90 typedef std::random_access_iterator_tag iterator_category;
111 inline const Bin& get_bin()
const;
113 inline void set_bin(
const Bin&);
116 inline iterator begin();
117 inline const_iterator begin()
const;
118 inline iterator end();
119 inline const_iterator end()
const;
124 inline iterator erase(iterator it);
134 inline void push_back(
const value_type&);
136 void reserve(size_type max_number);
138 inline size_type size()
const;
140 size_type capacity()
const;
169 void write(std::fstream&fst)
const;
170 void read(std::fstream&fst );
177 float square_sum()
const;
192 std::vector<value_type> elements;
Inline implementations for class stir::ProjMatrixelemesForOneBin.
A class for storing coordinates and value of a single projection bin.
Definition: Bin.h:48
Declaration of class stir::Bin.
Stores voxel coordinates and the value of the matrix element.
Definition: ProjMatrixElemsForOneBinValue.h:46
Declaration of class stir::ProjMatrixElemsForOneBinValue.
This stores the non-zero projection matrix elements for every 'densel' that contributes to a given bi...
Definition: ProjMatrixElemsForOneBin.h:68
Element_vector::iterator iterator
typedefs for iterator support
Definition: ProjMatrixElemsForOneBin.h:86
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
ProjMatrixElemsForOneBinValue value_type
Recommended way to call the type of the elements, instead of referring to the actual classname...
Definition: ProjMatrixElemsForOneBin.h:78