STIR 6.4.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__
20namespace stir
21{
22namespace detail
23{
28struct is_1d
29{
30};
31
36{
37};
38
67// note: should be Num_dimensions and not num_dimensions
68// because for old compilers, num_dimensions is sometimes #defined (sigh)
69template <int Num_dimensions>
71{
72};
73
76template <>
77struct test_if_1d<1> : is_1d
78{
79};
80} // namespace detail
81} // namespace stir
82
83#endif
Namespace for the implementation details of the STIR library.
Definition KeyParser.cxx:1158
Namespace for the STIR library (and some/most of its applications)
Definition General_Reconstruction.h:19
a class used to signify it's a 1D array
Definition test_if_1d.h:29
a class used to signify it's not a 1D array
Definition test_if_1d.h:36
a templated class used to check if it's a 1D array or not This class only exists to allow a work-arou...
Definition test_if_1d.h:71