STIR 6.4.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*/
20
21#ifndef __stir_modelling_KineticParameters_H__
22#define __stir_modelling_KineticParameters_H__
23
25#include "stir/assign.h"
26
27START_NAMESPACE_STIR
28
29template <int num_param, typename elemT>
30class KineticParameters : public BasicCoordinate<num_param, elemT>
31{
32 typedef BasicCoordinate<num_param, elemT> base_type;
33
34public:
35 KineticParameters() {}
36
37 KineticParameters(const base_type& c)
38 : base_type(c)
39 {}
40};
41
42template <int num_dimensions, class T, class T2>
43inline void
44assign(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
50END_NAMESPACE_STIR
51
52//#include "stir/modelling/KineticParameters.inl"
53
54#endif //__stir_modelling_KineticParameters_H__
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
defines the stir::assign function to assign values to different data types