STIR  6.2.0
KineticParameters.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2006 - 2009, Hammersmith Imanet Ltd
5  This file is part of STIR.
6 
7  SPDX-License-Identifier: Apache-2.0
8 
9  See STIR/LICENSE.txt for details
10 */
21 #ifndef __stir_modelling_KineticParameters_H__
22 #define __stir_modelling_KineticParameters_H__
23 
24 #include "stir/BasicCoordinate.h"
25 #include "stir/assign.h"
26 
27 START_NAMESPACE_STIR
28 
29 template <int num_param, typename elemT>
30 class KineticParameters : public BasicCoordinate<num_param, elemT>
31 {
32  typedef BasicCoordinate<num_param, elemT> base_type;
33 
34 public:
35  KineticParameters() {}
36 
37  KineticParameters(const base_type& c)
38  : base_type(c)
39  {}
40 };
41 
42 template <int num_dimensions, class T, class T2>
43 inline void
44 assign(KineticParameters<num_dimensions, T>& v, const T2& y)
45 {
46  for (typename KineticParameters<num_dimensions, T>::iterator iter = v.begin(); iter != v.end(); ++iter)
47  assign(*iter, y);
48 }
49 
50 END_NAMESPACE_STIR
51 
52 //#include "stir/modelling/KineticParameters.inl"
53 
54 #endif //__stir_modelling_KineticParameters_H__
defines the stir::assign function to assign values to different data types
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...