4 #ifndef __stir_recon_buildblock_ProjMatrixElemsForOneDensel__ 5 #define __stir_recon_buildblock_ProjMatrixElemsForOneDensel__ 33 template <
int num_dimensions,
typename elemT>
34 class DiscretisedDensity;
73 typedef std::vector<value_type> Element_vector;
78 typedef Element_vector::const_iterator const_iterator;
79 typedef Element_vector::size_type size_type;
80 typedef Element_vector::difference_type difference_type;
81 typedef std::random_access_iterator_tag iterator_category;
103 inline const Densel& get_densel()
const;
105 inline void set_densel(
const Densel&);
108 inline iterator begin();
109 inline const_iterator begin()
const;
110 inline iterator end();
111 inline const_iterator end()
const;
124 inline void push_back(
const value_type&);
126 void reserve(size_type max_number);
128 inline size_type size()
const;
148 void write(fstream&fst)
const;
149 void read(fstream&fst );
156 float square_sum()
const;
165 void forward_project(
Densel&,
177 std::vector<value_type> elements;
181 inline iterator erase(iterator it);
This stores the non-zero projection matrix elements for every 'voxel'.
Definition: ProjMatrixElemsForOneDensel.h:59
ProjMatrixElemsForOneDenselValue value_type
Recommended way to call the type of the elements, instead of referring to the actual classname...
Definition: ProjMatrixElemsForOneDensel.h:69
Element_vector::iterator iterator
typedefs for iterator support
Definition: ProjMatrixElemsForOneDensel.h:77
Declaration of typedef stir::Densel.
Stores voxel coordinates and the value of the matrix element.
Definition: ProjMatrixElemsForOneDenselValue.h:41
Inline implementations for class stir::ProjMatrixElemsForOneDensel.
Declaration of class stir::ProjMatrixElemsForOneDenselValue.
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43