Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkInstantiateAccessFunctionTest.cpp
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include "mitkTestingMacros.h"
18 
20 
21 // This is a "compile test", meaning that this file calls all InstantiateAccessFunction macros
22 // and must successfully compile.
23 class InstantiateAccessFunctionTest
24 {
25 public:
26  template <typename TPixel, unsigned int VDimension>
27  void AccessItkImage(itk::Image<TPixel, VDimension> *, int)
28  {
29  }
30 };
31 
32 #define InstantiateAccessFunction_AccessItkImage(Pixel, Dim) \
33  template void InstantiateAccessFunctionTest::AccessItkImage(itk::Image<Pixel, Dim> *, int);
34 
35 InstantiateAccessFunctionForFixedPixelType(AccessItkImage, (float)(double))
37 
38  int mitkInstantiateAccessFunctionTest(int /*argc*/, char * /*argv*/ [])
39 {
40  MITK_TEST_BEGIN("InstantiateAccessFunction")
41 
42  MITK_TEST_OUTPUT(<< "Successfully compiled")
43 
45 }
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
InstantiateAccessFunctionForFixedPixelType(AccessItkImage,(float)(double)) InstantiateAccessFunctionForIntegralPixelTypes(AccessItkImage) int mitkInstantiateAccessFunctionTest(int
#define MITK_TEST_OUTPUT(x)
Output some text.
#define InstantiateAccessFunctionForIntegralPixelTypes(itkImgFunc)
Instantiate access function for integral datatypes and all dimensions.
and MITK_TEST_END()