]> Creatis software - cpPlugins.git/blob - lib/cpPlugins_Instances/Base_extra.cxx
It should now compile on windows...
[cpPlugins.git] / lib / cpPlugins_Instances / Base_extra.cxx
1 #include <cpPlugins_Base_Export.h>
2 #include <cpPlugins_Config.h>
3
4 #include <itkImageRegion.h>
5 #include <itkFixedArray.h>
6 #include <itkPoint.h>
7 #include <itkVariableLengthVector.h>
8 #include <itkVector.h>
9
10 #include <itkImageRegion.hxx>
11 #include <itkFixedArray.hxx>
12 #include <itkPoint.hxx>
13 #include <itkVariableLengthVector.hxx>
14 #include <itkVector.hxx>
15
16 // -------------------------------------------------------------------------
17 #define cpPlugins_Base_extra_SimpleArray( V, D )                      \
18   template cpPlugins_Base_EXPORT                                      \
19   std::ostream& itk::operator<< < D >(                                \
20     std::ostream& a, V< D > const& b                                  \
21     )
22
23 cpPlugins_Base_extra_SimpleArray( itk::ImageRegion, 1 );
24 cpPlugins_Base_extra_SimpleArray( itk::ImageRegion, 2 );
25 cpPlugins_Base_extra_SimpleArray( itk::ImageRegion, 3 );
26 cpPlugins_Base_extra_SimpleArray( itk::ImageRegion, 4 );
27
28 // -------------------------------------------------------------------------
29 #define cpPlugins_Base_extra_Array( V, T, D )                         \
30   template cpPlugins_Base_EXPORT                                      \
31   std::ostream& itk::operator<< < T, D >(                             \
32     std::ostream& a, V< T, D > const& b                               \
33     )
34
35 #define cpPlugins_Base_extra_Array_AllScalars( V, D ) \
36   cpPlugins_Base_extra_Array( V, float, D );          \
37   cpPlugins_Base_extra_Array( V, double, D )
38
39 #define cpPlugins_Base_extra_Array_AllScalars_AllDims( V )    \
40   cpPlugins_Base_extra_Array_AllScalars( V, 1 );              \
41   cpPlugins_Base_extra_Array_AllScalars( V, 2 );              \
42   cpPlugins_Base_extra_Array_AllScalars( V, 3 );              \
43   cpPlugins_Base_extra_Array_AllScalars( V, 4 )
44
45 cpPlugins_Base_extra_Array_AllScalars_AllDims( itk::FixedArray );
46 cpPlugins_Base_extra_Array_AllScalars_AllDims( itk::Point );
47 cpPlugins_Base_extra_Array_AllScalars_AllDims( itk::Vector );
48
49 #define cpPlugins_Base_extra_VariableLengthVector_SetSize( T, P ) \
50   template cpPlugins_Base_EXPORT void itk::VariableLengthVector< T >:: \
51   SetSize< itk::VariableLengthVector< T >::P, \
52            itk::VariableLengthVector< T >::KeepOldValues >( \
53     unsigned int, itk::VariableLengthVector< T >::P, \
54     itk::VariableLengthVector< float >::KeepOldValues \
55   )
56
57 cpPlugins_Base_extra_VariableLengthVector_SetSize( float, AlwaysReallocate );
58 cpPlugins_Base_extra_VariableLengthVector_SetSize( float, ShrinkToFit );
59
60 // eof - $RCSfile$