diff --git a/ci/native-warnings.Tests.ps1 b/ci/native-warnings.Tests.ps1 new file mode 100644 index 00000000..9b60f868 --- /dev/null +++ b/ci/native-warnings.Tests.ps1 @@ -0,0 +1,140 @@ +# Tests that the two on-premise packages build their native code, the SWIG +# wrapper, the C++ and the C, with the warnings of -Wall -Wextra and /W4 on and +# treated as errors, and that nothing turns a warning off: no -Wno-* or /wd +# flag, no lower warning level, no C runtime define that turns deprecation +# warnings off, no commented out -Werror or /WX, and no pragma in a wrapper +# other than those SWIG writes and the interface file lists. +# setup.py, the interface files and the wrappers are read as text. + +BeforeDiscovery { + $script:Packages = @( + @{ + Name = 'fiftyone_devicedetection_onpremise' + Folder = 'device-detection/fiftyone_devicedetection_onpremise' + Interface = 'hash_python.i' + Wrapper = 'hash_python_wrap.cxx' + }, + @{ + Name = 'fiftyone_ipintelligence_onpremise' + Folder = 'ip-intelligence/fiftyone_ipintelligence_onpremise' + Interface = 'ipi_python.i' + Wrapper = 'ipi_python_wrap.cxx' + } + ) +} + +Describe ' native build flags' -ForEach $Packages { + BeforeAll { + $root = Join-Path $PSScriptRoot '..' $Folder + $script:Lines = @(Get-Content -LiteralPath (Join-Path $root 'setup.py')) + # The lines that are code, with any comment at the end taken off. + $script:Code = @($script:Lines | + Where-Object { $_ -notmatch '^\s*#' } | + ForEach-Object { $_ -replace '\s#.*$', '' }) + $script:Comments = @($script:Lines | Where-Object { $_ -match '^\s*#' }) + + function Get-Count([string]$Pattern) { + @($script:Code | Where-Object { $_ -match $Pattern }).Count + } + } + + It 'turns no warning off and lowers no warning level' { + $switches = @($script:Code | Where-Object { + $_ -match "-Wno-|/wd\d|/w[1-4]\d|'-w'|'/w'|'/W[0-3]'|/external:W0" + }) + $switches | Should -BeNullOrEmpty + } + + It 'defines nothing that turns off the C runtime deprecation warnings' { + $defines = @($script:Code | Where-Object { + $_ -match '_CRT_SECURE_NO_WARNINGS|(? SWIG wrapper' -ForEach $Packages { + BeforeAll { + $source = Join-Path $PSScriptRoot '..' $Folder 'src' $Name + $script:Interface = Get-Content -Raw ` + -LiteralPath (Join-Path $source $Interface) + $script:WrapperLines = @(Get-Content ` + -LiteralPath (Join-Path $source $Wrapper)) + } + + It 'asks SWIG to leave on the warnings it would turn off' { + foreach ($name in 'SWIG_MSC_UNSUPPRESS_4505', + 'SWIG_NO_CRT_SECURE_NO_DEPRECATE', + 'SWIG_NO_SCL_SECURE_NO_DEPRECATE') { + $script:Interface | Should -Match "(?m)^#define $name\s*$" + } + } + + It 'has no pragma other than those the interface file lists' { + # The pragmas SWIG writes that no SWIG setting removes, each listed in + # the interface file comment with the reason it changes nothing here, + # and the 4505 one, which SWIG_MSC_UNSUPPRESS_4505 leaves out. + $known = @( + '#pragma warning(disable : 4505)' + '#pragma warning disable 592' + '#pragma GCC diagnostic push' + '#pragma GCC diagnostic pop' + '#pragma GCC diagnostic ignored "-Wregister"' + '#pragma GCC diagnostic ignored "-Wdeprecated"' + '#pragma GCC diagnostic ignored "-Wdeprecated-declarations"' + '#pragma warning(push)' + '#pragma warning(pop)' + '#pragma warning(disable: 4996)' + ) + $other = @($script:WrapperLines | + Where-Object { $_ -match '^\s*#\s*pragma\b' } | + ForEach-Object { + ($_ -replace '/\*.*$', '' -replace '^\s*#\s*', '#').Trim() + } | + Where-Object { $_ -notin $known }) + $other | Should -BeNullOrEmpty + } + + It 'lists each SWIG pragma in the interface file comment' { + foreach ($text in '-Wregister', '4505', '592', '-Wdeprecated', + '4996') { + $script:Interface | Should -Match ([regex]::Escape($text)) + } + } +} diff --git a/cxx b/cxx index 699a9789..98701d9c 160000 --- a/cxx +++ b/cxx @@ -1 +1 @@ -Subproject commit 699a9789a2b7d523f2bf64f6a46826717c23d34f +Subproject commit 98701d9ce93f9d376fa6e13df13f92f11939124a diff --git a/device-detection/fiftyone_devicedetection_onpremise/setup.py b/device-detection/fiftyone_devicedetection_onpremise/setup.py index 7a9f0e2b..e0acedbd 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/setup.py +++ b/device-detection/fiftyone_devicedetection_onpremise/setup.py @@ -27,11 +27,13 @@ import platform from setuptools import setup, Extension from setuptools.command import develop +from setuptools.command.build_clib import build_clib from distutils import sysconfig from Cython.Distutils import build_ext from glob import glob import os import io +import re import shutil # Read a text file and return the content as a string. @@ -72,7 +74,28 @@ def get_version(): python_version = str(sys.version_info[0]) return version + python_version +def remove_msvc_warning_level(compiler): + + """Take the warning level that setuptools gives MSVC out of its options, + so /W4 below is the only level. cl warns (D9025) when one level overrides + another, and /WX does not make that warning an error.""" + if compiler.compiler_type != "msvc": + return + if not compiler.initialized: + compiler.initialize() + for options in (compiler.compile_options, compiler.compile_options_debug): + options[:] = [o for o in options if not re.fullmatch(r"/W\d", o)] + +class LibraryBuilder(build_clib): + def build_libraries(self, libraries): + remove_msvc_warning_level(self.compiler) + super().build_libraries(libraries) + class NoSuffixBuilder(build_ext): + def build_extensions(self): + remove_msvc_warning_level(self.compiler) + super().build_extensions() + def get_ext_filename(self, ext_name): filename = super().get_ext_filename(ext_name) suffix = sysconfig.get_config_var('EXT_SUFFIX') @@ -129,44 +152,40 @@ def stage_native_source(): # Extra compilation flags for C library cflags = [] +# The warnings of -Wall -Wextra and /W4 are on and are errors, for the +# wrapper, the C++ and the C alike. -Wunused-result comes after the flags +# Python was built with, which can turn it off. if sys.platform != "win32": extra_compile_args.extend([ '-fPIC', '-std=gnu++17', '-Wall', - # '-Werror' + '-Wextra', + '-Wunused-result', + '-Werror' ]) cflags.extend([ '-std=gnu11', '-Wall', - # '-Werror', - '-Wno-strict-prototypes', - '-Wno-unused-variable', - '-Wno-missing-braces', - '-Wno-strict-aliasing' + '-Wextra', + '-Wunused-result', + '-Werror' ]) if sys.platform == "win32": extra_compile_args.extend([ '/std:c++17', - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX', - '/wd4127', - '/wd4456', - '/wd4701', - '/wd4703', - '/wd4706' + '/WX' ]) cflags.extend([ - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX' + '/WX' ]) extra_link_args.extend([ '/WX' @@ -182,13 +201,6 @@ def stage_native_source(): extra_compile_args.extend([ '-DGCC_ENABLE_CPP_EXCEPTIONS=YES' ]) - if sys.version_info[0] == 3 and sys.version_info[1] == 8: - extra_compile_args.extend([ - '-Wno-deprecated-declarations' - ]) - cflags.extend([ - '-Wno-atomic-alignment' - ]) DeviceDetectionHashEngineModule = Extension('_DeviceDetectionHashEngineModule', sources=[ @@ -227,7 +239,7 @@ def stage_native_source(): }) setup( - cmdclass={"build_ext": NoSuffixBuilder}, + cmdclass={"build_ext": NoSuffixBuilder, "build_clib": LibraryBuilder}, name="fiftyone_devicedetection_onpremise", version=read("version.txt"), author="51Degrees Engineering", diff --git a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i index 8360e0fa..cb2c0207 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i +++ b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python.i @@ -20,6 +20,37 @@ * such notice(s) shall fulfill the requirements of that article. * ********************************************************************* */ +/* The wrapper is built with the warnings of -Wall -Wextra and /W4 as errors, + * so SWIG is asked to leave on the warnings it turns off for the whole wrapper + * (C4505 and the C runtime deprecation warnings). SWIG's runtime defines + * helper functions that a module may not call. GCC and Clang are told so by + * SWIG's unused attribute, which MSVC has no equivalent for, so on MSVC they + * are inline, as unused inline functions are expected. Only the arguments + * that differ are checked to tell the overloads apart (fast dispatch), which + * also keeps each check in a scope of its own so no local hides another. + * + * SWIG still writes these pragmas in the wrapper, and no SWIG setting + * removes them. None of them changes this build: + * - GCC "-Wregister", around Python.h only, for Python 2.7 headers. The + * Python headers this package builds with use register only for GNU + * explicit register variables, which -Wregister does not report. + * - Intel compiler warning 592, for the Intel compiler only. + * - GCC "-Wdeprecated" and "-Wdeprecated-declarations", and MSVC 4996, + * around PyObject_AsReadBuffer, only when SWIG_PYTHON_OLD_BUFFER_PROTOCOL + * is defined. This build does not define it. + * ci/native-warnings.Tests.ps1 fails on any other pragma in the wrapper. */ +%begin %{ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif +%} +%feature("fastdispatch"); + %include %pybuffer_binary(unsigned char data[], long length); %rename(refreshDataFromFile) refreshData(const char *fileName); diff --git a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx index 259bd9cf..9c38b773 100644 --- a/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx +++ b/device-detection/fiftyone_devicedetection_onpremise/src/fiftyone_devicedetection_onpremise/hash_python_wrap.cxx @@ -6,6 +6,16 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif + + #define SWIG_VERSION 0x040401 #define SWIGPYTHON @@ -6477,28 +6487,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_incr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -6573,28 +6569,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_decr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7077,31 +7059,19 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { + { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7629,32 +7599,14 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig___setitem__(PyObject *self, PyObj if (!(argc = SWIG_Python_UnpackTuple(args, "MapStringStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7743,23 +7695,25 @@ SWIGINTERN PyObject *_wrap_new_MapStringStringSwig(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "new_MapStringStringSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); - } + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8169,46 +8123,25 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig_erase(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8657,48 +8590,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setslice__(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8951,30 +8850,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___delitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9033,30 +8922,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___getitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9125,52 +9004,31 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setitem__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9690,35 +9548,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_erase(PyObject *self, PyObject *args if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9776,39 +9613,32 @@ SWIGINTERN PyObject *_wrap_new_VectorStringSwig(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorStringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10011,36 +9841,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_resize(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10171,44 +9979,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_insert(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10502,23 +10280,25 @@ SWIGINTERN PyObject *_wrap_new_RequiredPropertiesConfigSwig(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "new_RequiredPropertiesConfigSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12460,31 +12240,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValues(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12635,31 +12405,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsString(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12810,31 +12570,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsBool(PyObject *self, PyObje --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12985,31 +12735,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsInteger(PyObject *self, PyO --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13160,31 +12900,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsDouble(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13335,31 +13065,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictBool(PyObject *self, --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13510,31 +13230,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictInteger(PyObject *sel --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13685,31 +13395,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictDouble(PyObject *self --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -15543,48 +15243,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setslice__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16023,30 +15689,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___delitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16136,30 +15792,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___getitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16254,54 +15900,31 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setitem__(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17374,35 +16997,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_erase(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17486,41 +17088,32 @@ SWIGINTERN PyObject *_wrap_new_UTF8StringSwig(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_UTF8StringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17863,38 +17456,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_resize(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18074,51 +17643,17 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_insert(PyObject *self, PyObject *args) 0 }; - if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_insert", 0, 4, argv))) SWIG_fail; - --argc; - if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); - } - } - } - } - if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_insert", 0, 4, argv))) SWIG_fail; + --argc; + if (argc == 3) { + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; + } + if (argc == 4) { + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18476,37 +18011,22 @@ SWIGINTERN PyObject *_wrap_new_ValueMetaDataKeySwig(PyObject *self, PyObject *ar --argc; if (argc == 2) { int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - if (argc <= 2) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 2) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -23246,30 +22766,20 @@ SWIGINTERN PyObject *_wrap_EngineDeviceDetectionSwig_processDeviceDetection(PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineDeviceDetection, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceDeviceDetection, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineDeviceDetection, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineDeviceDetectionSwig_processDeviceDetection__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -23752,28 +23262,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getDeviceId(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getDeviceId", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getDeviceId__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getDeviceId__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getDeviceId__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getDeviceId__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -23908,28 +23404,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getDifference(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getDifference", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getDifference__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getDifference__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getDifference__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getDifference__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -24064,28 +23546,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getMethod(PyObject *self, PyObject *a if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getMethod", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getMethod__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getMethod__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getMethod__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getMethod__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -24220,28 +23688,14 @@ SWIGINTERN PyObject *_wrap_ResultsHashSwig_getDrift(PyObject *self, PyObject *ar if (!(argc = SWIG_Python_UnpackTuple(args, "ResultsHashSwig_getDrift", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsHashSwig_getDrift__SWIG_0(self, argc, argv); - } + PyObject *retobj = _wrap_ResultsHashSwig_getDrift__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsHashSwig_getDrift__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsHashSwig_getDrift__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27111,48 +26565,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___setslice__(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorUInt32Swig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27591,30 +27011,20 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___delitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorUInt32Swig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorUInt32Swig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27704,30 +27114,20 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___getitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorUInt32Swig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorUInt32Swig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27822,54 +27222,31 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig___setitem__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_VectorUInt32Swig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorUInt32Swig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_VectorUInt32Swig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28942,35 +28319,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig_erase(PyObject *self, PyObject *args if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorUInt32Swig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorUInt32Swig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -29054,41 +28410,32 @@ SWIGINTERN PyObject *_wrap_new_VectorUInt32Swig(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorUInt32Swig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_VectorUInt32Swig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_VectorUInt32Swig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorUInt32Swig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_VectorUInt32Swig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorUInt32Swig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_VectorUInt32Swig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorUInt32Swig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_VectorUInt32Swig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -29431,38 +28778,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig_resize(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -29645,48 +28968,14 @@ SWIGINTERN PyObject *_wrap_VectorUInt32Swig_insert(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorUInt32Swig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned int,std::allocator< unsigned int > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorUInt32Swig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorUInt32Swig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30061,40 +29350,22 @@ SWIGINTERN PyObject *_wrap_new_EngineHashSwig(PyObject *self, PyObject *args) { --argc; if (argc == 3) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigHash, 0); + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineHashSwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_EngineHashSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 3) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineHashSwig__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_new_EngineHashSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30676,30 +29947,20 @@ SWIGINTERN PyObject *_wrap_EngineHashSwig_process(PyObject *self, PyObject *args --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceDeviceDetection, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_process__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineHashSwig_process__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_process__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineHashSwig_process__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30992,30 +30253,20 @@ SWIGINTERN PyObject *_wrap_EngineHashSwig_processDeviceDetection(PyObject *self, --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceDeviceDetection, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_processDeviceDetection__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineHashSwig_processDeviceDetection__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineHash, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineHashSwig_processDeviceDetection__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineHashSwig_processDeviceDetection__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31199,17 +30450,14 @@ SWIGINTERN PyObject *_wrap_new_ResultsHashSerializer(PyObject *self, PyObject *a if (!(argc = SWIG_Python_UnpackTuple(args, "new_ResultsHashSerializer", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_ResultsHashSerializer__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_ResultsHashSerializer__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_ResultsHashSerializer__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_ResultsHashSerializer__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31455,17 +30703,14 @@ SWIGINTERN PyObject *_wrap_new_Transform(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_Transform", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_Transform__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_Transform__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_Transform__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_Transform__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: diff --git a/device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py b/device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py new file mode 100644 index 00000000..19e16ac5 --- /dev/null +++ b/device-detection/fiftyone_devicedetection_onpremise/tests/test_overload_type_error.py @@ -0,0 +1,46 @@ +# ********************************************************************* +# This Original Work is copyright of 51 Degrees Mobile Experts Limited. +# Copyright 2026 51 Degrees Mobile Experts Limited, Davidson House, +# Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU. +# +# This Original Work is licensed under the European Union Public Licence +# (EUPL) v.1.2 and is subject to its terms as set out below. +# +# If a copy of the EUPL was not distributed with this file, You can obtain +# one at https://opensource.org/licenses/EUPL-1.2. +# +# The 'Compatible Licences' set out in the Appendix to the EUPL (as may be +# amended by the European Commission) shall be deemed incompatible for +# the purposes of the Work and the provisions of the compatibility +# clause in Article 5 of the EUPL shall not apply. +# +# If using the Work as, or as part of, a network application, by +# including the attribution notice(s) required under Article 5 of the EUPL +# in the end user terms of the application under an appropriate heading, +# such notice(s) shall fulfill the requirements of that article. +# ********************************************************************* + +"""A call to the engine's overloaded constructor with arguments that match no +overload raises a TypeError that names the constructor, and does not crash +or build an engine. No data file is read.""" + +import unittest + +from fiftyone_devicedetection_onpremise.DeviceDetectionHashEngineModule import EngineHashSwig + + +class TestOverloadTypeError(unittest.TestCase): + + def test_wrong_argument_types_raise_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineHashSwig(1, 2, 3) + self.assertIn("new_EngineHashSwig", str(raised.exception)) + + def test_wrong_number_of_arguments_raises_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineHashSwig("file") + self.assertIn("new_EngineHashSwig", str(raised.exception)) + + +if __name__ == "__main__": + unittest.main() diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py index 85089057..5770cb16 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/setup.py @@ -27,11 +27,13 @@ import platform from setuptools import setup, Extension from setuptools.command import develop +from setuptools.command.build_clib import build_clib from distutils import sysconfig from Cython.Distutils import build_ext from glob import glob import os import io +import re import shutil # Read a text file and return the content as a string. @@ -72,7 +74,28 @@ def get_version(): python_version = str(sys.version_info[0]) return version + python_version +def remove_msvc_warning_level(compiler): + + """Take the warning level that setuptools gives MSVC out of its options, + so /W4 below is the only level. cl warns (D9025) when one level overrides + another, and /WX does not make that warning an error.""" + if compiler.compiler_type != "msvc": + return + if not compiler.initialized: + compiler.initialize() + for options in (compiler.compile_options, compiler.compile_options_debug): + options[:] = [o for o in options if not re.fullmatch(r"/W\d", o)] + +class LibraryBuilder(build_clib): + def build_libraries(self, libraries): + remove_msvc_warning_level(self.compiler) + super().build_libraries(libraries) + class NoSuffixBuilder(build_ext): + def build_extensions(self): + remove_msvc_warning_level(self.compiler) + super().build_extensions() + def get_ext_filename(self, ext_name): filename = super().get_ext_filename(ext_name) suffix = sysconfig.get_config_var('EXT_SUFFIX') @@ -147,46 +170,42 @@ def stage_native_source(): '-DFIFTYONE_DEGREES_LARGE_DATA_FILE_SUPPORT=1', '-DFIFTYONE_DEGREES_REDUCED_FILE=1'] +# The warnings of -Wall -Wextra and /W4 are on and are errors, for the +# wrapper, the C++ and the C alike. -Wunused-result comes after the flags +# Python was built with, which can turn it off. if sys.platform != "win32": extra_compile_args.extend([ '-fPIC', '-std=gnu++17', '-Wall', + '-Wextra', + '-Wunused-result', '-D_FILE_OFFSET_BITS=64', - # '-Werror' + '-Werror' ]) cflags.extend([ '-std=gnu11', '-Wall', + '-Wextra', + '-Wunused-result', '-D_FILE_OFFSET_BITS=64', - # '-Werror', - '-Wno-strict-prototypes', - '-Wno-unused-variable', - '-Wno-missing-braces', - '-Wno-strict-aliasing' + '-Werror' ]) if sys.platform == "win32": extra_compile_args.extend([ '/std:c++17', - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX', - '/wd4127', - '/wd4456', - '/wd4701', - '/wd4703', - '/wd4706' + '/WX' ]) cflags.extend([ - '/D_CRT_SECURE_NO_WARNINGS', '/D_UNICODE', '/DUNICODE', '/W4', - # '/WX' + '/WX' ]) extra_link_args.extend([ '/WX' @@ -202,13 +221,6 @@ def stage_native_source(): extra_compile_args.extend([ '-DGCC_ENABLE_CPP_EXCEPTIONS=YES' ]) - if sys.version_info[0] == 3 and sys.version_info[1] == 8: - extra_compile_args.extend([ - '-Wno-deprecated-declarations' - ]) - cflags.extend([ - '-Wno-atomic-alignment' - ]) IpIntelligenceEngineModule = Extension('_IpIntelligenceEngineModule', sources=[ @@ -245,7 +257,7 @@ def stage_native_source(): }) setup( - cmdclass={"build_ext": NoSuffixBuilder}, + cmdclass={"build_ext": NoSuffixBuilder, "build_clib": LibraryBuilder}, name="fiftyone_ipintelligence_onpremise", version=read("version.txt"), author="51Degrees Engineering", diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i index 76a5d7b6..2dc21e47 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python.i @@ -20,6 +20,37 @@ * such notice(s) shall fulfill the requirements of that article. * ********************************************************************* */ +/* The wrapper is built with the warnings of -Wall -Wextra and /W4 as errors, + * so SWIG is asked to leave on the warnings it turns off for the whole wrapper + * (C4505 and the C runtime deprecation warnings). SWIG's runtime defines + * helper functions that a module may not call. GCC and Clang are told so by + * SWIG's unused attribute, which MSVC has no equivalent for, so on MSVC they + * are inline, as unused inline functions are expected. Only the arguments + * that differ are checked to tell the overloads apart (fast dispatch), which + * also keeps each check in a scope of its own so no local hides another. + * + * SWIG still writes these pragmas in the wrapper, and no SWIG setting + * removes them. None of them changes this build: + * - GCC "-Wregister", around Python.h only, for Python 2.7 headers. The + * Python headers this package builds with use register only for GNU + * explicit register variables, which -Wregister does not report. + * - Intel compiler warning 592, for the Intel compiler only. + * - GCC "-Wdeprecated" and "-Wdeprecated-declarations", and MSVC 4996, + * around PyObject_AsReadBuffer, only when SWIG_PYTHON_OLD_BUFFER_PROTOCOL + * is defined. This build does not define it. + * ci/native-warnings.Tests.ps1 fails on any other pragma in the wrapper. */ +%begin %{ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif +%} +%feature("fastdispatch"); + %include %pybuffer_binary(unsigned char data[], long length); %pybuffer_mutable_binary(unsigned char copy[], uint32_t size); diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx index 440dec16..41ef0d43 100644 --- a/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/src/fiftyone_ipintelligence_onpremise/ipi_python_wrap.cxx @@ -6,6 +6,16 @@ * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ +#define SWIG_MSC_UNSUPPRESS_4505 +#define SWIG_NO_CRT_SECURE_NO_DEPRECATE +#define SWIG_NO_SCL_SECURE_NO_DEPRECATE +#if defined(_MSC_VER) +#define SWIGINTERN static inline +#define SWIGINTERNINLINE static inline +#define SWIGRUNTIMEINLINE static inline +#endif + + #define SWIG_VERSION 0x040401 #define SWIGPYTHON @@ -6977,28 +6987,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_incr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7073,28 +7069,14 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_decr", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -7577,31 +7559,19 @@ SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { + { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_NO_NULL | 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8129,32 +8099,14 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig___setitem__(PyObject *self, PyObj if (!(argc = SWIG_Python_UnpackTuple(args, "MapStringStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8243,23 +8195,25 @@ SWIGINTERN PyObject *_wrap_new_MapStringStringSwig(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "new_MapStringStringSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); + { + int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_MapStringStringSwig__SWIG_0(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); - } + PyObject *retobj = _wrap_new_MapStringStringSwig__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -8669,46 +8623,25 @@ SWIGINTERN PyObject *_wrap_MapStringStringSwig_erase(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_MapStringStringSwig_erase__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_MapStringStringSwig_erase__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9157,48 +9090,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setslice__(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9451,30 +9350,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___delitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9533,30 +9422,20 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___getitem__(PyObject *self, PyObject --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_VectorStringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -9625,52 +9504,31 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig___setitem__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< std::string,std::allocator< std::string > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_VectorStringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10190,35 +10048,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_erase(PyObject *self, PyObject *args if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10276,39 +10113,32 @@ SWIGINTERN PyObject *_wrap_new_VectorStringSwig(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "new_VectorStringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_VectorStringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_VectorStringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10511,36 +10341,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_resize(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -10671,44 +10479,14 @@ SWIGINTERN PyObject *_wrap_VectorStringSwig_insert(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "VectorStringSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_VectorStringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -11002,23 +10780,25 @@ SWIGINTERN PyObject *_wrap_new_RequiredPropertiesConfigSwig(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "new_RequiredPropertiesConfigSwig", 0, 1, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); + _v = SWIG_CheckState(res); } + if (!_v) goto check_2; + return _wrap_new_RequiredPropertiesConfigSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< std::string,std::allocator< std::string > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_RequiredPropertiesConfigSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -12960,31 +12740,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValues(PyObject *self, PyObject *a --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValues__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValues__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13135,31 +12905,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsString(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsString__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsString__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13310,31 +13070,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsBool(PyObject *self, PyObje --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13485,31 +13235,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsInteger(PyObject *self, PyO --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13660,31 +13400,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsDouble(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -13835,31 +13565,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictBool(PyObject *self, --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictBool__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -14010,31 +13730,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictInteger(PyObject *sel --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictInteger__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -14185,31 +13895,21 @@ SWIGINTERN PyObject *_wrap_ResultsBaseSwig_getValueAsStrictDouble(PyObject *self --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsBase, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsBaseSwig_getValueAsStrictDouble__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16043,48 +15743,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setslice__(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16523,30 +16189,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___delitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16636,30 +16292,20 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___getitem__(PyObject *self, PyObject * --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_UTF8StringSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -16754,54 +16400,31 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig___setitem__(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_UTF8StringSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17874,35 +17497,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_erase(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -17986,41 +17588,32 @@ SWIGINTERN PyObject *_wrap_new_UTF8StringSwig(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_UTF8StringSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_UTF8StringSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_UTF8StringSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18363,38 +17956,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_resize(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -18577,48 +18146,14 @@ SWIGINTERN PyObject *_wrap_UTF8StringSwig_insert(PyObject *self, PyObject *args) if (!(argc = SWIG_Python_UnpackTuple(args, "UTF8StringSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< unsigned char,std::allocator< unsigned char > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_UTF8StringSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -19046,37 +18581,22 @@ SWIGINTERN PyObject *_wrap_new_ValueMetaDataKeySwig(PyObject *self, PyObject *ar --argc; if (argc == 2) { int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - if (argc <= 2) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 2) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_ValueMetaDataKeySwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -24303,27 +23823,14 @@ SWIGINTERN PyObject *_wrap_new_IpAddressSwig(PyObject *self, PyObject *args) { if (!(argc = SWIG_Python_UnpackTuple(args, "new_IpAddressSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 1) { - int _v = 0; - int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_IpAddressSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_IpAddressSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_int(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_IpAddressSwig__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_IpAddressSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25014,48 +24521,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___setslice__(PyObject *self, P if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25494,30 +24967,20 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___delitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedStringListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedStringListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25607,30 +25070,20 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___getitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedStringListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedStringListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -25726,52 +25179,31 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig___setitem__(PyObject *self, Py if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedStringListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedStringListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -26845,35 +26277,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig_erase(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedStringListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedStringListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -26958,39 +26369,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedStringListSwig(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedStringListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedStringListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedStringListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedStringListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedStringListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedStringListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedStringListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedStringListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedStringListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27336,36 +26740,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig_resize(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedStringListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -27550,44 +26932,14 @@ SWIGINTERN PyObject *_wrap_WeightedStringListSwig_insert(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedStringListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::string >,std::allocator< WeightedValue< std::string > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_std__string_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedStringListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedStringListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28251,48 +27603,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___setslice__(PyObject *sel if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28731,30 +28049,20 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___delitem__(PyObject *self --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedUTF8StringListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28844,30 +28152,20 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___getitem__(PyObject *self --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedUTF8StringListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -28963,52 +28261,31 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig___setitem__(PyObject *self if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30082,35 +29359,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig_erase(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30195,39 +29451,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedUTF8StringListSwig(PyObject *self, PyObje if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedUTF8StringListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedUTF8StringListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedUTF8StringListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedUTF8StringListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedUTF8StringListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedUTF8StringListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30573,36 +29822,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig_resize(PyObject *self, PyO if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedUTF8StringListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -30787,44 +30014,14 @@ SWIGINTERN PyObject *_wrap_WeightedUTF8StringListSwig_insert(PyObject *self, PyO if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedUTF8StringListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< std::vector< uint8_t,std::allocator< uint8_t > > >,std::allocator< WeightedValue< std::vector< uint8_t > > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_std__vectorT_uint8_t_t_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedUTF8StringListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedUTF8StringListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31488,48 +30685,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___setslice__(PyObject *self, PyO if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -31968,30 +31131,20 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___delitem__(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedBoolListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedBoolListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -32081,30 +31234,20 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___getitem__(PyObject *self, PyOb --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedBoolListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedBoolListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -32200,52 +31343,31 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig___setitem__(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedBoolListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedBoolListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -33319,35 +32441,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig_erase(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedBoolListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedBoolListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -33432,39 +32533,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedBoolListSwig(PyObject *self, PyObject *ar if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedBoolListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedBoolListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedBoolListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedBoolListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedBoolListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedBoolListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedBoolListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedBoolListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedBoolListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -33810,36 +32904,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig_resize(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedBoolListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -34024,44 +33096,14 @@ SWIGINTERN PyObject *_wrap_WeightedBoolListSwig_insert(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedBoolListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< bool >,std::allocator< WeightedValue< bool > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_bool_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedBoolListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedBoolListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -34725,48 +33767,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___setslice__(PyObject *self, PyOb if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -35205,30 +34213,20 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___delitem__(PyObject *self, PyObj --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedIntListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedIntListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -35318,30 +34316,20 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___getitem__(PyObject *self, PyObj --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedIntListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedIntListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -35437,52 +34425,31 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig___setitem__(PyObject *self, PyObj if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedIntListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedIntListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -36556,35 +35523,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig_erase(PyObject *self, PyObject *a if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedIntListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedIntListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -36669,39 +35615,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedIntListSwig(PyObject *self, PyObject *arg if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedIntListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedIntListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedIntListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedIntListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedIntListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedIntListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedIntListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedIntListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedIntListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -37047,36 +35986,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig_resize(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedIntListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -37261,44 +36178,14 @@ SWIGINTERN PyObject *_wrap_WeightedIntListSwig_insert(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedIntListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< int >,std::allocator< WeightedValue< int > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_int_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedIntListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedIntListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -37962,48 +36849,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___setslice__(PyObject *self, P if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig___setslice__", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___setslice____SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setslice____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = swig::asptr(argv[3], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig___setslice____SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setslice____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -38442,30 +37295,20 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___delitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedDoubleListSwig___delitem____SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedDoubleListSwig___delitem____SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___delitem____SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___delitem____SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -38555,30 +37398,20 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___getitem__(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - return _wrap_WeightedDoubleListSwig___getitem____SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_WeightedDoubleListSwig___getitem____SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___getitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___getitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -38674,52 +37507,31 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig___setitem__(PyObject *self, Py if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig___setitem__", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - _v = PySlice_Check(argv[1]); - } - if (_v) { - return _wrap_WeightedDoubleListSwig___setitem____SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setitem____SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { + { { _v = PySlice_Check(argv[1]); } - if (_v) { - int res = swig::asptr(argv[2], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig___setitem____SWIG_0(self, argc, argv); - } - } } + if (!_v) goto check_2; + { + int res = swig::asptr(argv[2], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + return _wrap_WeightedDoubleListSwig___setitem____SWIG_0(self, argc, argv); } +check_2: + if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig___setitem____SWIG_2(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig___setitem____SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -39793,35 +38605,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig_erase(PyObject *self, PyObject if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig_erase", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedDoubleListSwig_erase__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_erase__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - return _wrap_WeightedDoubleListSwig_erase__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_erase__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -39906,39 +38697,32 @@ SWIGINTERN PyObject *_wrap_new_WeightedDoubleListSwig(PyObject *self, PyObject * if (!(argc = SWIG_Python_UnpackTuple(args, "new_WeightedDoubleListSwig", 0, 2, argv))) SWIG_fail; --argc; if (argc == 0) { - return _wrap_new_WeightedDoubleListSwig__SWIG_0(self, argc, argv); + PyObject *retobj = _wrap_new_WeightedDoubleListSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 1) { int _v = 0; { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_new_WeightedDoubleListSwig__SWIG_2(self, argc, argv); + { + int res = SWIG_AsVal_size_t(argv[0], NULL); + _v = SWIG_CheckState(res); + } } + if (!_v) goto check_2; + return _wrap_new_WeightedDoubleListSwig__SWIG_2(self, argc, argv); } +check_2: + if (argc == 1) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedDoubleListSwig__SWIG_1(self, argc, argv); - } + PyObject *retobj = _wrap_new_WeightedDoubleListSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 2) { - int _v = 0; - { - int res = SWIG_AsVal_size_t(argv[0], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_WeightedDoubleListSwig__SWIG_3(self, argc, argv); - } - } + PyObject *retobj = _wrap_new_WeightedDoubleListSwig__SWIG_3(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -40284,36 +39068,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig_resize(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig_resize", 0, 3, argv))) SWIG_fail; --argc; if (argc == 2) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_WeightedDoubleListSwig_resize__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_resize__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[1], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig_resize__SWIG_1(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_resize__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -40498,44 +39260,14 @@ SWIGINTERN PyObject *_wrap_WeightedDoubleListSwig_insert(PyObject *self, PyObjec if (!(argc = SWIG_Python_UnpackTuple(args, "WeightedDoubleListSwig_insert", 0, 4, argv))) SWIG_fail; --argc; if (argc == 3) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig_insert__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_insert__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - int res = swig::asptr(argv[0], (std::vector< WeightedValue< double >,std::allocator< WeightedValue< double > > >**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - swig::SwigPyIterator *iter = 0; - int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); - _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); - if (_v) { - { - int res = SWIG_AsVal_size_t(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_WeightedValueT_double_t, SWIG_POINTER_NO_NULL | 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_WeightedDoubleListSwig_insert__SWIG_1(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_WeightedDoubleListSwig_insert__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -42846,31 +41578,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedStringList(PyObject --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedStringList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43021,31 +41743,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList(PyOb --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedUTF8StringList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43196,31 +41908,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValueAsUTF8String(PyObject *self, P --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValueAsUTF8String__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43387,43 +42089,23 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList(PyObj --argc; if (argc == 3) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 3) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_unsigned_SS_char(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedWKTStringList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43574,31 +42256,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedBoolList(PyObject * --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedBoolList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43749,31 +42421,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList(PyObjec --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedIntegerList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -43924,31 +42586,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList(PyObject --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValuesAsWeightedDoubleList__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -44099,31 +42751,21 @@ SWIGINTERN PyObject *_wrap_ResultsIpiSwig_getValueAsIpAddress(PyObject *self, Py --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_1(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_1(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_ResultsIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_0(self, argc, argv); - } - } + PyObject *retobj = _wrap_ResultsIpiSwig_getValueAsIpAddress__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -46818,40 +45460,22 @@ SWIGINTERN PyObject *_wrap_new_EngineIpiSwig(PyObject *self, PyObject *args) { --argc; if (argc == 3) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigIpi, 0); + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineIpiSwig__SWIG_1(self, argc, argv); - } - } } + if (!_v) goto check_1; + PyObject *retobj = _wrap_new_EngineIpiSwig__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } +check_1: + if (argc == 3) { - int _v = 0; - int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_ConfigIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_RequiredPropertiesConfig, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_new_EngineIpiSwig__SWIG_0(self, argc, argv); - } - } - } + PyObject *retobj = _wrap_new_EngineIpiSwig__SWIG_0(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: @@ -47510,56 +46134,25 @@ SWIGINTERN PyObject *_wrap_EngineIpiSwig_process(PyObject *self, PyObject *args) --argc; if (argc == 2) { int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { + { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_EvidenceIpi, 0); _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineIpiSwig_process__SWIG_0(self, argc, argv); - } } + if (!_v) goto check_1; + return _wrap_EngineIpiSwig_process__SWIG_0(self, argc, argv); } +check_1: + if (argc == 2) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); - _v = SWIG_CheckState(res); - if (_v) { - return _wrap_EngineIpiSwig_process__SWIG_1(self, argc, argv); - } - } + PyObject *retobj = _wrap_EngineIpiSwig_process__SWIG_1(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } if (argc == 4) { - int _v = 0; - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_EngineIpi, 0); - _v = SWIG_CheckState(res); - if (_v) { - void *vptr = 0; - int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); - _v = SWIG_CheckState(res); - if (_v) { - { - int res = SWIG_AsVal_long(argv[2], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - { - int res = SWIG_AsVal_int(argv[3], NULL); - _v = SWIG_CheckState(res); - } - if (_v) { - return _wrap_EngineIpiSwig_process__SWIG_2(self, argc, argv); - } - } - } - } + PyObject *retobj = _wrap_EngineIpiSwig_process__SWIG_2(self, argc, argv); + if (!SWIG_Python_TypeErrorOccurred(retobj)) return retobj; + SWIG_fail; } fail: diff --git a/ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py b/ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py new file mode 100644 index 00000000..aed5b0c3 --- /dev/null +++ b/ip-intelligence/fiftyone_ipintelligence_onpremise/tests/test_overload_type_error.py @@ -0,0 +1,46 @@ +# ********************************************************************* +# This Original Work is copyright of 51 Degrees Mobile Experts Limited. +# Copyright 2026 51 Degrees Mobile Experts Limited, Davidson House, +# Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU. +# +# This Original Work is licensed under the European Union Public Licence +# (EUPL) v.1.2 and is subject to its terms as set out below. +# +# If a copy of the EUPL was not distributed with this file, You can obtain +# one at https://opensource.org/licenses/EUPL-1.2. +# +# The 'Compatible Licences' set out in the Appendix to the EUPL (as may be +# amended by the European Commission) shall be deemed incompatible for +# the purposes of the Work and the provisions of the compatibility +# clause in Article 5 of the EUPL shall not apply. +# +# If using the Work as, or as part of, a network application, by +# including the attribution notice(s) required under Article 5 of the EUPL +# in the end user terms of the application under an appropriate heading, +# such notice(s) shall fulfill the requirements of that article. +# ********************************************************************* + +"""A call to the engine's overloaded constructor with arguments that match no +overload raises a TypeError that names the constructor, and does not crash +or build an engine. No data file is read.""" + +import unittest + +from fiftyone_ipintelligence_onpremise.IpIntelligenceEngineModule import EngineIpiSwig + + +class TestOverloadTypeError(unittest.TestCase): + + def test_wrong_argument_types_raise_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineIpiSwig(1, 2, 3) + self.assertIn("new_EngineIpiSwig", str(raised.exception)) + + def test_wrong_number_of_arguments_raises_type_error(self): + with self.assertRaises(TypeError) as raised: + EngineIpiSwig("file") + self.assertIn("new_EngineIpiSwig", str(raised.exception)) + + +if __name__ == "__main__": + unittest.main()