/usr/src/WrapITK/Modules/Base/itkConstantBoundaryConditionStub.h is in libinsighttoolkit3-dev 3.20.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | #ifndef CABLE_CONFIGURATION
// This file should *only* ever be included on windows systems!
// gcc-xml cannot be allowed to see the full ConstantBoundaryCondition header.
// If we're not gcc_xml, just pass through to the proper header.
#include "itkConstantBoundaryCondition.h"
#else
// Here follows the restricted header made available just to gcc-xml on windows.
// The problem we are working around is the fact that on windows, the
// NumericTraits<PixelType>::Zero values are declared as __declspec(dllimport),
// which gcc-xml and cswig can't deal with properly. So we hide that stuff in
// these restricted headers.
#ifndef __itkConstantBoundaryCondition_h
#define __itkConstantBoundaryCondition_h
#include "itkNeighborhood.h"
#include "itkNumericTraits.h"
#include "itkImageBoundaryCondition.h"
namespace itk
{
template<class TImage>
class ITK_EXPORT ConstantBoundaryCondition
: public ImageBoundaryCondition<TImage>
{
public:
typedef ConstantBoundaryCondition Self;
typedef ImageBoundaryCondition<TImage> Superclass;
typedef typename Superclass::PixelType PixelType;
typedef typename Superclass::PixelPointerType PixelPointerType;
typedef typename Superclass::IndexType IndexType;
typedef typename Superclass::OffsetType OffsetType;
typedef typename Superclass::NeighborhoodType NeighborhoodType;
typedef typename Superclass::NeighborhoodAccessorFunctorType
NeighborhoodAccessorFunctorType;
itkStaticConstMacro(ImageDimension, unsigned int,Superclass::ImageDimension);
ConstantBoundaryCondition();
virtual PixelType operator()(const OffsetType&,
const OffsetType&,
const NeighborhoodType *) const;
virtual PixelType operator()(
const OffsetType& ,
const OffsetType& ,
const NeighborhoodType *,
const NeighborhoodAccessorFunctorType & ) const;
void SetConstant(const PixelType &c);
/** Get the value of the constant. */
const PixelType &GetConstant() const;
};
} // end namespace itk
#endif // ifndef stuff
#endif // end if CABLE_CONFIGURATION
|