📄 wrap_vxlnumerics.h
字号:
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: wrap_VXLNumerics.h,v $
Language: C++
Date: $Date: 2003/09/10 14:30:12 $
Version: $Revision: 1.2 $
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef _wrap_VXLNumerics_h
#define _wrap_VXLNumerics_h
#include "itkCSwigMacros.h"
#define ITK_WRAP_VNL_TYPEDEF(type) \
typedef ::type<double> type##_double; \
typedef ::type<vcl_complex<double> > type##_double_complex; \
typedef ::type<float> type##_float; \
typedef ::type<vcl_complex<float> > type##_float_complex; \
typedef ::type<int> type##_int; \
typedef ::type<long> type##_long; \
typedef ::type<long double> type##_long_double; \
typedef ::type<vcl_complex<long double> > type##_long_double_complex; \
typedef ::type<signed char> type##_schar; \
typedef ::type<unsigned char> type##_uchar; \
typedef ::type<unsigned int> type##_uint; \
typedef ::type<unsigned long> type##_ulong
#define ITK_WRAP_VNL_SIZEOF(type) \
sizeof(type##_double); \
sizeof(type##_double_complex); \
sizeof(type##_float); \
sizeof(type##_float_complex); \
sizeof(type##_int); \
sizeof(type##_long); \
sizeof(type##_long_double); \
sizeof(type##_long_double_complex); \
sizeof(type##_schar); \
sizeof(type##_uchar); \
sizeof(type##_uint); \
sizeof(type##_ulong)
#define ITK_WRAP_VNL(type) \
namespace _cable_ \
{ \
const char* const group = ITK_WRAP_GROUP(type); \
namespace wrappers \
{ \
ITK_WRAP_VNL_TYPEDEF(type); \
} \
} \
void force_instantiate() \
{ \
using namespace _cable_::wrappers; \
ITK_WRAP_VNL_SIZEOF(type); \
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -