STIR 6.4.0
IndexRange4D.inl
Go to the documentation of this file.
1//
2//
14/*
15 Copyright (C) 2000 PARAPET partners
16 Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
17 This file is part of STIR.
18
19 SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
20
21 See STIR/LICENSE.txt for details
22*/
23
24#include "stir/Coordinate4D.h"
25
26START_NAMESPACE_STIR
27
28IndexRange4D::IndexRange4D()
29 : base_type()
30{}
31
32IndexRange4D::IndexRange4D(const IndexRange<4>& range_v)
33 : base_type(range_v)
34{}
35
36IndexRange4D::IndexRange4D(const int min_1,
37 const int max_1,
38 const int min_2,
39 const int max_2,
40 const int min_3,
41 const int max_3,
42 const int min_4,
43 const int max_4)
44 : base_type(Coordinate4D<int>(min_1, min_2, min_3, min_4), Coordinate4D<int>(max_1, max_2, max_3, max_4))
45{}
46
47IndexRange4D::IndexRange4D(const int length_1, const int length_2, const int length_3, const int length_4)
48 : base_type(Coordinate4D<int>(0, 0, 0, 0), Coordinate4D<int>(length_1 - 1, length_2 - 1, length_3 - 1, length_4 - 1))
49{}
50END_NAMESPACE_STIR
defines the stir::Coordinate4D<coordT> class