Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include "mitkTestingMacros.h"
14 
16 
17 // This is a "compile test", meaning that this file calls all InstantiateAccessFunction macros
18 // and must successfully compile.
19 class InstantiateAccessFunctionTest
20 {
21 public:
22  template <typename TPixel, unsigned int VDimension>
23  void AccessItkImage(itk::Image<TPixel, VDimension> *, int)
24  {
25  }
26 };
27 
28 #define InstantiateAccessFunction_AccessItkImage(Pixel, Dim) \
29  template void InstantiateAccessFunctionTest::AccessItkImage(itk::Image<Pixel, Dim> *, int);
30 
31 InstantiateAccessFunctionForFixedPixelType(AccessItkImage, (float)(double))
33 
34  int mitkInstantiateAccessFunctionTest(int /*argc*/, char * /*argv*/ [])
35 {
36  MITK_TEST_BEGIN("InstantiateAccessFunction")
37 
38  MITK_TEST_OUTPUT(<< "Successfully compiled")
39 
41 }
int mitkInstantiateAccessFunctionTest(int, char *[])
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()