STIR  6.2.0
test_if_1d.h
Go to the documentation of this file.
1 
9 /*
10  Copyright (C) 2004- 2009, Hammersmith Imanet Ltd
11  This file is part of STIR.
12 
13  SPDX-License-Identifier: Apache-2.0
14 
15  See STIR/LICENSE.txt for details
16 */
17 
18 #ifndef __stir_detail_test_if_1d_H__
19 #define __stir_detail_test_if_1d_H__
20 namespace stir
21 {
22 namespace detail
23 {
28 struct is_1d
29 {
30 };
35 struct is_not_1d
36 {
37 };
38 
67 // note: should be Num_dimensions and not num_dimensions
68 // because for old compilers, num_dimensions is sometimes #defined (sigh)
69 template <int Num_dimensions>
71 {
72 };
76 template <>
77 struct test_if_1d<1> : is_1d
78 {
79 };
80 } // namespace detail
81 } // namespace stir
82 
83 #endif
Namespace for the STIR library (and some/most of its applications)
Definition: General_Reconstruction.cxx:6
a class used to signify it&#39;s not a 1D array
Definition: test_if_1d.h:35
a class used to signify it&#39;s a 1D array
Definition: test_if_1d.h:28
a templated class used to check if it&#39;s a 1D array or not This class only exists to allow a work-arou...
Definition: test_if_1d.h:70