]> Creatis software - cpPlugins.git/blob - lib/cpPlugins_Instances/Base_extra.cxx
...
[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 // -------------------------------------------------------------------------
50 #define cpPlugins_Base_extra_VariableLengthVector_SetSize( T, P, Q )    \
51   template cpPlugins_Base_EXPORT void itk::VariableLengthVector< T >::  \
52   SetSize                                                               \
53   < itk::VariableLengthVector< T >::P, itk::VariableLengthVector< T >::Q > \
54   (                                                                     \
55     unsigned int,                                                       \
56     itk::VariableLengthVector< T >::P,                                  \
57     itk::VariableLengthVector< T >::Q                                   \
58     )
59
60 cpPlugins_Base_extra_VariableLengthVector_SetSize( float, AlwaysReallocate, KeepOldValues );
61 cpPlugins_Base_extra_VariableLengthVector_SetSize( float, ShrinkToFit, KeepOldValues );
62 cpPlugins_Base_extra_VariableLengthVector_SetSize( double, AlwaysReallocate, KeepOldValues );
63 cpPlugins_Base_extra_VariableLengthVector_SetSize( double, ShrinkToFit, KeepOldValues );
64
65 // eof - $RCSfile$